!function(){"use strict";((e,i)=>{var n,c;null!==(n=(c=window.marfeel.config).experiences)&&void 0!==n||(c.experiences={}),window.marfeel.config=Object.assign(Object.assign({},e),window.marfeel.config),Object.assign(window.marfeel.config.experiences,{preflight:i})})({},{"active":true,"hasPreflight":true,"recommender":{"enabled":true,"personalizedContent":false,"curatedContent":true},"preflight":{"targeting":{},"inline":{},"compass":{"actions":{" Recirculation (default)":{"id":"AC_Z6-0z1XvSYubcEZb-ogTbw","placement":"window","recirculationModules":[{"name":"Leia Também","selector":".alsoread"},{"name":"Links inline","selector":"#content"},{"name":"Whatsapp Wrapper","selector":".whatsapp-wrapper"}]}}},"loader":{"actions":{"Multimídia":{"id":"AC_PoXDGGKBQdmeEYwfx5sqIQ","placement":"window","moduleName":"multimedia","config":{"multimedia":{"providers":["youtube","jwplayer","dailymotion","video","audio"]}}}}}}})}(); var e,t,r,n,i={539:(e,t,r)=>{r.d(t,{C1:()=>s});var n,i,o=r(749);(i=n||(n={}))[i.BACKGROUND=0]="BACKGROUND",i[i.FOREGROUND=1]="FOREGROUND",i[i.LEAVING=2]="LEAVING",i[i.BF_CACHE=3]="BF_CACHE",i[i.LOAD=4]="LOAD";const s=e=>{void 0!==document.addEventListener&&void 0!==document.hidden&&document.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&e(n.BACKGROUND)})),window.addEventListener("pagehide",(()=>{e(n.LEAVING)}),{capture:!0}),window.addEventListener("blur",(()=>{"hidden"===document.visibilityState&&e(n.BACKGROUND)}),{capture:!0}),o.TK&&addEventListener("beforeunload",(()=>e(n.LEAVING)),!0)}},749:(e,t,r)=>{r.d(t,{hQ:()=>s,RX:()=>i,jn:()=>o,TK:()=>n});const n="undefined"!=typeof window&&/^((?!chrome|android).)*safari/i.test(window.navigator.userAgent)&&((e=window.navigator.userAgent)=>{const t=function(e,t){const r=(e||window.navigator.userAgent).match(/version\/(\d+(\.\d+)?)/i);return r&&r.length>1&&r[1]||""}(e),r=parseInt(t.split(".")[0],10);return!isNaN(r)&&r})()<13,i=(()=>{try{return"keepalive"in new Request("https://www.google.com/")}catch(e){return!1}})(),o="undefined"!=typeof window&&void 0!==window.navigator.sendBeacon,s="undefined"!=typeof window&&"fetch"in window},595:(e,t,r)=>{r.d(t,{N:()=>u});const n={childList:!0,subtree:!0};let i,o=[];const s=[],a=e=>{s.forEach((t=>{t(e)}))};function c(e){return new MutationObserver((t=>{t.forEach((t=>{"childList"===t.type&&e(t.target)}))}))}const u=(e,t=document.body)=>{const r=t===document.body;if(e){const l=((e,t)=>{let r;return function(...t){clearTimeout(r),r=setTimeout((()=>{e(...t)}),400)}})(e);if("undefined"!=typeof MutationObserver)if(r)u=()=>{l(document.body)},s.push(u),i||(i=c(a),i.observe(document.body,n));else{const e=c(l);o.push(e),e.observe(t,n)}}var u}},181:function(e,t){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i{var n;r.d(t,{Z:()=>l});var i=new Uint8Array(16);function o(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)}const s=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var a=[],c=0;c<256;++c)a.push((c+256).toString(16).substr(1));const u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&s.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r},l=function(e,t,r){var n=(e=e||{}).random||(e.rng||o)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return u(n)}}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,loaded:!1,exports:{}};return i[e].call(r.exports,r,r.exports,s),r.loaded=!0,r.exports}s.m=i,s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var i=Object.create(null);s.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&r;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>o[e]=()=>r[e]));return o.default=()=>r,s.d(i,o),i},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,r)=>(s.f[r](e,t),t)),[])),s.u=e=>({360:"d31ef6f2918eede5697b",374:"6802f5507c5ca4c78acc",376:"74d2269d24ec52e4971b",512:"544b6d39dadb4f09c7b3",688:"f40a7f801b46f4952835"}[e]+".js"),s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="@marfeel/marfeel-sdk:",s.l=(e,t,i,o)=>{if(r[e])r[e].push(t);else{var a,c;if(void 0!==i)for(var u=document.getElementsByTagName("script"),l=0;l{a.onerror=a.onload=null,clearTimeout(h);var i=r[e];if(delete r[e],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach((e=>e(n))),t)return t(n)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),c&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.p="https://sdk.mrf.io/statics/",(()=>{s.b=document.baseURI||self.location.href;var e={179:0};s.f.j=(t,r)=>{var n=s.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var i=new Promise(((r,i)=>n=e[t]=[r,i]));r.push(n[2]=i);var o=s.p+s.u(t),a=new Error;s.l(o,(r=>{if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var i=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,n[1](a)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,i,[o,a,c]=r,u=0;if(o.some((t=>0!==e[t]))){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);c&&c(s)}for(t&&t(r);u{var e={};s.r(e),s.d(e,{TIMING_MARKS:()=>l,mark:()=>p,markAndMeasure:()=>f,measure:()=>h});var t=function(){try{var e;if(-1!==location.hash.indexOf("mrfdebug")||null!==(e=window.localStorage)&&void 0!==e&&e.getItem("mrfdebug")){for(var t=arguments.length,r=new Array(t),n=0;n{try{t(e)}catch(e){console.error(e)}}))}},c=class{constructor(){o(this,"dependencies",{})}get(e,t){var r="string"==typeof e?[e]:e,n=new Array(e.length),i=e.length;i?r.forEach(((e,r)=>{this.dependencies[e]||(this.dependencies[e]=new a),this.dependencies[e].get((e=>{n[r]=e,0==--i&&t(...n)}))})):t(...n)}register(e,t){this.dependencies[e]?this.dependencies[e].resolve(t):this.dependencies[e]=new a(t)}};var u=[];var l=function(e){return e.LOADING_EXPERIENCES="loadingExperiences",e.END_LOADING_EXPERIENCES="endLoadingExperiences",e.INIT_HANDLE_INLINE_EXPERIENCE="initHandleInlineExperience",e.END_HANDLE_INLINE_EXPERIENCE="endHandleInlineExperience",e.INIT_HANDLE_EXPERIMENTATION="initHandleExperimentation",e.END_HANDLE_EXPERIMENTATION="endHandleExperimentation",e.INIT_HANDLE_ACTION="initHandleAction",e.END_HANDLE_ACTION="endHandleAction",e}({}),d=-1!==location.hash.indexOf("mrfdebug")||-1!==location.hash.indexOf("mrfexp"),p=e=>{d&&performance.mark(e)},h=(e,t,r)=>{if(d){var n=performance.measure("".concat(e," to ").concat(t),e,t);!function(){try{if(d){for(var e=arguments.length,t=new Array(e),r=0;r{d&&(p(t),h(e,t,r))};function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;te.forEach((e=>this.getSDKs(...e)));n(t.cmd.splice(0)),t.cmd.push=function(){for(var e=arguments.length,t=new Array(e),r=0;r{if((!(s=t.origin)||"null"===s||s===window.location.origin||u.includes(s))&&(o=t.data)&&"__MRF_SDK__"===o.app){var{sdkName:r,methodName:n,args:i}=t.data;e.cmd.push([r,e=>{e[n].apply(e,i)}])}var o,s}))}(t)}registerSDK(e,t,r){var i=this;return n((function*(){i.dependenciesContainer.get(t,(function(){for(var t=arguments.length,n=new Array(t),o=0;o{i.dependenciesContainer.register(e,new t(i.config,...n))})).catch((()=>{}))}))}))()}addConfig(e){var t=this;return n((function*(){t.config=v(v({},t.config),e)}))()}getSDKs(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0])||arguments[0];o(this,"onChangeCallbacks",void 0),o(this,"onReadyCallbacks",void 0),o(this,"consent",void 0),o(this,"features",void 0),o(this,"state",void 0),o(this,"isEnabled",void 0),this.consent=e,this.features={},this.onReadyCallbacks=[],this.onChangeCallbacks=[],this.isEnabled=!0,e&&(this.state=w.ANSWERED)}isInitiated(){return arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?!this.isEnabled||this.state===w.READY||this.state===w.ANSWERED:!this.isEnabled||this.state===w.ANSWERED}isRealCMP(){return!1}setCMPLoaded(){this.state||(this.state=w.READY);var e=this.onReadyCallbacks.slice();this.onReadyCallbacks=[],e.forEach((e=>e()))}setCMPNotApplies(){this.isEnabled=!1,this.consent=!0,this.setCMPLoaded()}isActive(){return this.isEnabled}onReady(e){this.isInitiated(!1)?e():this.onReadyCallbacks.push(e)}onChange(e){var t;null===(t=this.onChangeCallbacks)||void 0===t||t.push(e)}callOnChange(){this.onChangeCallbacks.forEach((e=>e()))}getConsent(e){return e&&this.features&&void 0!==this.features[e]?this.features[e]:this.consent}setConsentFeatures(e){e.forEach((e=>{var{feature:t,consent:r}=e;this.features[b(t)]=r})),this.state||this.setCMPLoaded(),this.callOnChange(),this.state=w.ANSWERED}setConsent(e,t){this.features[b(e)]=t,this.callOnChange()}hasToPromptForConsent(e){e(!1)}hasConsentForVendor(e){return this.getConsent()}hasConsentForPurpose(e){return this.getConsent()}}var E=["tcloaded","useractioncomplete"],k={cookies:{vendors:[943],purposes:[1,7,8,9,10]},personalization:{vendors:[943],purposes:[1,5,6,7,8,9,10]}};class P{constructor(){o(this,"tcData",void 0),o(this,"isReady",!1);var e=()=>{this.isReady=!0};this.onReady(e.bind(this)),this.onChange((t=>{this.tcData=t,null!=t&&t.gdprApplies||e()}).bind(this))}isInitiated(){return arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.isReady:!!this.tcData}isRealCMP(){return!0}isActive(){var e;return!(null==this||null===(e=this.tcData)||void 0===e||!e.gdprApplies)}hasToPromptForConsent(e){this.addEventListener((t=>{var r,n,{cmpStatus:i}=t;"loaded"===i&&(null===(r=(n=window).__tcfapi)||void 0===r||r.call(n,"ping",2,(t=>{var{displayStatus:r}=t;return e("disabled"!==r)})))}))}hasConsentForVendor(e){var t,r;return!0===(null===(t=this.tcData)||void 0===t||null===(r=t.vendor)||void 0===r?void 0:r.consents[e])}hasConsentForPurpose(e){var t,r;return!0===(null===(t=this.tcData)||void 0===t||null===(r=t.purpose)||void 0===r?void 0:r.consents[e])}matchRequirements(e){return!!e&&!!this.tcData&&e.vendors.every(this.hasConsentForVendor.bind(this))&&e.purposes.every(this.hasConsentForPurpose.bind(this))}onChange(e){this.addEventListener(((t,r)=>{!r||!E.includes(t.eventStatus)&&t.gdprApplies||e(t)}))}onReady(e){this.isInitiated(!1)?e():this.addEventListener((t=>{var r,n,{cmpStatus:i,listenerId:o}=t;"loaded"===i&&(e(),null===(r=(n=window).__tcfapi)||void 0===r||r.call(n,"removeEventListener",2,(()=>{}),o))}))}getConsent(e){return!(!this.tcData||this.tcData.gdprApplies)||this.matchRequirements(k[e])}addEventListener(e){var t,r;window.__tcfapi?null===(t=(r=window).__tcfapi)||void 0===t||t.call(r,"addEventListener",2,e):setTimeout((()=>this.addEventListener(e)),100)}}var S=s(571),C="flagConsentReady",j=function(e){return e[e.CONSENT_ACCEPTED=0]="CONSENT_ACCEPTED",e[e.CONSENT_NON_REJECTED=1]="CONSENT_NON_REJECTED",e[e.CONSENT_PRESENT=2]="CONSENT_PRESENT",e}(j||{}),T=e=>e.blockOnNoConsent?j.CONSENT_ACCEPTED:e.blockOnReject?j.CONSENT_NON_REJECTED:j.CONSENT_PRESENT;function A(e,t,r,n){return I.apply(this,arguments)}function I(){return(I=n((function*(e,t,r,n){var i,o="".concat(C,"_").concat((0,S.Z)());return!e.blockOnNoConsent&&void 0===e.manualConsent&&n&&(i=window.setTimeout((()=>r.resolve(o)),n)),t.onReady((()=>{!function(e,t,r,n){var i=()=>!!t.getConsent("cookies")&&(r(),!0),o=()=>{i()||t.onChange(i)};switch(e){case j.CONSENT_ACCEPTED:o();break;case j.CONSENT_NON_REJECTED:o(),t.isInitiated()&&!t.getConsent("cookies")&&window.clearTimeout(n);break;default:r()}}(T(e),t,(()=>r.resolve(o)),i)})),r.wait(o)}))).apply(this,arguments)}class D{constructor(e){o(this,"handler",void 0),this.handler=function(e){return void 0!==e.gdpr&&!e.gdpr||!window.__tcfapi&&!window.gdprAppliesGlobally?new O(!e.manualConsent):new P}(e)}isInitiated(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.handler.isInitiated(e)}isRealCMP(){return this.handler.isRealCMP()}isActive(){return this.handler.isActive()}setCMPLoaded(){this.handler.setCMPLoaded()}setCMPNotApplies(){this.handler.setCMPNotApplies()}onChange(e){this.handler.onChange(e)}onReady(e){this.handler.onReady(e)}getConsent(e){return this.handler.getConsent(e)}setConsentFeatures(e,t){this.handler instanceof O||(this.handler=new O),this.handler.setConsentFeatures(e,t)}setConsent(e,t){this.handler instanceof O||(this.handler=new O),this.handler.setConsent(e,t)}hasToPromptForConsent(e){this.handler.hasToPromptForConsent(e)}hasConsentForVendor(e){return this.handler.hasConsentForVendor(e)}hasConsentForPurpose(e){return this.handler.hasConsentForPurpose(e)}}y("consent",[],(()=>Promise.resolve(D)));var N=e=>{"history"in window&&window.history.replaceState(history.state,"",e)};function _(){return _=n((function*(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;ne(!0))),o=new Array(i.length),a=0,new Promise(((e,t)=>{i.forEach(((r,n)=>{r.then((t=>{t&&e(t)})).catch((e=>{o[n]=e,(a+=1)===i.length&&t(o)}))}))}))).then((t=>{var r=window.top===window.self;t&&r&&(e=>{s.e(374).then(s.bind(s,374)).then((t=>{var{default:r,saveActiveOverlay:n}=t;new r(e),n()}))})(e)})).catch((()=>{}));var i,o,a})),_.apply(this,arguments)}function R(e){return n((function*(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=new URL(window.location.href),n=!!r.searchParams.get(e);if(n&&t)try{N(function(e,t){var r,n=new URL(e.href);return null===(r=n.searchParams)||void 0===r||r.delete(t),n.toString()}(r,e))}catch(e){}return n}))}function L(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}"function"==typeof SuppressedError&&SuppressedError;const x={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};function M(e){const t=[];return e.forEach(((e,r)=>{t.push(r+"="+function(e){return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,(function(e){return x[e]}))}(e))})),t.join("&")}const U="undefined"!=typeof window&&/^((?!chrome|android).)*safari/i.test(window.navigator.userAgent)&&((e=window.navigator.userAgent)=>{const t=function(e,t){const r=(e||window.navigator.userAgent).match(/version\/(\d+(\.\d+)?)/i);return r&&r.length>1&&r[1]||""}(e),r=parseInt(t.split(".")[0],10);return!isNaN(r)&&r})()<13,V=(()=>{try{return"keepalive"in new Request("https://www.google.com/")}catch(e){return!1}})(),F="undefined"!=typeof window&&void 0!==window.navigator.sendBeacon,q="undefined"!=typeof window&&"fetch"in window;var B,G,z,K;function H(e,t,{contentType:r,sync:n=!1,onSuccessCallback:i,onErrorCallback:o,timeout:s,cancelOnTimeout:a}={}){const c=!!i||!!o,u=((e,t)=>U||!q&&!F||t?B.XHR:q&&(V||e)?B.FETCH:F&&!e?B.BEACON:B.XHR)(c,n),l=((e,t,r,n)=>t&&r&&e!==B.BEACON?n&&"AbortSignal"in window&&e===B.FETCH?G.ABORT:G.TIMER:G.NONE)(u,c,n?void 0:s,a),{onErrorCallback:d,onSuccessCallback:p}=((e,t,r,n)=>{if(e===G.TIMER){let e=!1;const i=window.setTimeout((()=>{e=!0,null==n||n(408)}),t),o=t=>r=>{e||(window.clearTimeout(i),null==t||t(r))};return{onSuccessCallback:o(r),onErrorCallback:o(n)}}return{onSuccessCallback:r,onErrorCallback:n}})(l,s,i,o),h=function(e,t){return"string"==typeof e?e:"application/x-www-form-urlencoded"===t?M(e):JSON.stringify(e)}(t,r);switch(u){case B.FETCH:return void((e,t,{contentType:r,keepalive:n=!1,timeout:i}={})=>{let o=t;const s=void 0!==i?{signal:window.AbortSignal.timeout(i)}:{};return r&&(o=new Blob([t],{type:r})),fetch(e,Object.assign({method:"POST",body:o,keepalive:n,credentials:"include"},s))})(e,h,{contentType:r,keepalive:!0,timeout:l===G.ABORT?s:void 0}).then((e=>(e.ok||null==d||d(e.status),e.text()))).then((e=>null==p?void 0:p(e))).catch((e=>{const t=(e=>e instanceof DOMException&&("TimeoutError"===e.name||e.code===DOMException.TIMEOUT_ERR))(e)?408:0;null==d||d(t)}));case B.BEACON:return void((e,t,{contentType:r}={})=>{let n=t;r&&(n=new Blob([t],{type:r})),window.navigator.sendBeacon(e,n)})(e,h,{contentType:r});default:return function(e,t,{onSuccessCallback:r,onErrorCallback:n,contentType:i,sync:o=!1}={}){const s=!o,a=new XMLHttpRequest;return a.open("POST",e,s),i&&a.setRequestHeader("Content-Type",i),a.withCredentials=!0,o||(a.onreadystatechange=()=>{4===a.readyState&&(200===a.status?null==r||r(a.responseText):null==n||n(a.status))}),a.send(t),o?a.responseText:void 0}(e,h,{onSuccessCallback:p,contentType:r,onErrorCallback:d,sync:n})}}(K=B||(B={}))[K.XHR=0]="XHR",K[K.FETCH=1]="FETCH",K[K.BEACON=2]="BEACON",function(e){e[e.ABORT=0]="ABORT",e[e.NONE=1]="NONE",e[e.TIMER=2]="TIMER"}(G||(G={})),function(e){e[e.ORIGIN=0]="ORIGIN",e[e.FALLBACK=1]="FALLBACK"}(z||(z={}));const W=e=>null==e?void 0:e.replace(/\/$/,"");class J{constructor(e,{fallback:t,fallbackWindow:r=5e3,onModeChange:n=(()=>{}),timeout:i,timeoutStrategy:o}={}){this.mode=z.ORIGIN,this.pendingRequests={},this.endpoint=W(e),this.fallback=W(t),this.fallbackWindow=r,this.onModeChange=n,this.timeout=i,this.timeoutStrategy=o instanceof String?{strategy:o}:o}setRequestStatus(e,t=!0){this.pendingRequests[e]=t}isRequestPending(e){return!!this.pendingRequests[e]}switchMode(e,t){this.mode=e,window.setTimeout((()=>this.onModeChange(e,t)),0)}getUri(e,t={},r=this.mode){const n=e.startsWith("/")?e:`/${e}`;return function(e,t){const r=new RegExp(`:(${Object.keys(t).join("|")})`,"g");return e.replace(r,((e,r)=>t[r]||e))}(`${r===z.ORIGIN?this.endpoint:this.fallback}${n}`,t)}post(e,t,r={}){var n;const{onErrorCallback:i,onSuccessCallback:o,skipResponse:s=!1,vars:a,timeout:c,leaving:u}=r,l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i{var t;return 408===e&&(null===(t=this.timeoutStrategy)||void 0===t?void 0:t.processor)||(e=>e)},h=!!u||s,f=h?void 0:this.fallback&&(n=>{if(this.fallback&&d===z.ORIGIN){const i=p(n);this.switchMode(z.FALLBACK,n),this.post(e,i(t,e),r),window.setTimeout((()=>this.switchMode(z.ORIGIN)),this.fallbackWindow)}else null==i||i(n)})||i,m=h?void 0:t=>{null==o||o(t),this.setRequestStatus(e,!1)},v=this.isRequestPending(e)&&(null===(n=this.timeoutStrategy)||void 0===n?void 0:n.forceOnExit)&&this.mode===z.ORIGIN&&u,g=(t,r=this.mode)=>{var n;H(this.getUri(e,a,r),t,Object.assign(Object.assign({},l),{onSuccessCallback:m,onErrorCallback:f,timeout:null!=c?c:this.timeout,cancelOnTimeout:"abort"===(null===(n=this.timeoutStrategy)||void 0===n?void 0:n.strategy)}))};this.setRequestStatus(e,!h),g(t),v&&g(p(408)(t,e),z.FALLBACK)}}var X;!function(e){e[e.BACKGROUND=0]="BACKGROUND",e[e.FOREGROUND=1]="FOREGROUND",e[e.LEAVING=2]="LEAVING",e[e.BF_CACHE=3]="BF_CACHE",e[e.LOAD=4]="LOAD"}(X||(X={}));const $=e=>{void 0!==document.addEventListener&&void 0!==document.hidden&&document.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&e(X.BACKGROUND)})),window.addEventListener("pagehide",(()=>{e(X.LEAVING)}),{capture:!0}),window.addEventListener("blur",(()=>{"hidden"===document.visibilityState&&e(X.BACKGROUND)}),{capture:!0}),U&&addEventListener("beforeunload",(()=>e(X.LEAVING)),!0)},Q=e=>{void 0!==document.addEventListener&&void 0!==document.hidden&&document.addEventListener("visibilitychange",(()=>{"hidden"!==document.visibilityState&&e(X.FOREGROUND)})),window.addEventListener("pageshow",(t=>{e(t.persisted?X.BF_CACHE:X.LOAD)}),{capture:!0}),window.addEventListener("focus",(()=>{"hidden"!==document.visibilityState&&e(X.FOREGROUND)}),{capture:!0})},Y=(e,t=!1)=>"replicas"in e?e:{api:e,replicas:1,primary:t};class Z{constructor(...e){this.apis=[],this.apis=e.map(((e,t)=>Y(e,0===t)))}registerApi(e){this.apis.push(Y(e))}post(...e){const[t,r,n]=e;this.apis.flatMap((e=>new Array(e.replicas).fill(e).map(((e,t)=>Object.assign(Object.assign({},e),{replicaId:`${t}`}))))).forEach((({api:e,replicaId:i,preprocess:o=(e=>e),primary:s})=>{try{const a=s?null==n?void 0:n.onSuccessCallback:void 0,c=s?null==n?void 0:n.onErrorCallback:void 0;e.post(t,o(r,null==n?void 0:n.contentType),Object.assign(Object.assign({},n),{onSuccessCallback:a,onErrorCallback:c,vars:Object.assign(Object.assign({},null==n?void 0:n.vars),{replicaId:i})}))}catch(e){}}))}}const ee={childList:!0,subtree:!0};let te;const re=[],ne=e=>{re.forEach((t=>{t(e)}))};function ie(e){return new MutationObserver((t=>{t.forEach((t=>{"childList"===t.type&&e(t.target)}))}))}const oe=(e,t=document.body)=>{const r=t===document.body;if(e){const i=((e,t)=>{let r;return function(...t){clearTimeout(r),r=setTimeout((()=>{e(...t)}),400)}})(e);"undefined"!=typeof MutationObserver&&(r?(n=()=>{i(document.body)},re.push(n),te||(te=ie(ne),te.observe(document.body,ee))):ie(i).observe(t,ee))}var n};let se={};const ae=e=>{const t=document.createElement("a");return t.href=e,t.origin},ce=e=>"fbia"===e?window.ia_document.shareURL:window.location.href,ue=e=>"fbia"===e?window.ia_document.referrer:document.referrer,le=e=>{const t=ue(e);if(t)try{if(new URL(t).pathname.endsWith(".js"))return null}catch(e){}return t},de=RegExp("^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])");function pe(e,{cache:t=!0,readonly:r=!0}={}){try{if(!r)return new URL(e,document.baseURI);if(!se[e]){const{host:r,hostname:n,pathname:i,port:o,protocol:s,search:a,hash:c,href:u,origin:l}=new URL(e,document.baseURI),d={host:r,hostname:n,pathname:i,port:o,protocol:s,search:a,hash:c,href:u,origin:l};if(!t)return d;se[e]=d}return Object.assign({},se[e])}catch(e){return{}}}const he="data-mrf-link";function fe(e,t,r=!0){const n=e;(r||!n.mrfLink)&&(n.mrfLink=t),(r||!e.hasAttribute(he))&&e.setAttribute(he,t)}const me=e=>pe(e).href,ve=e=>{try{const t=new URL(e);return t.host.includes("mrf.io")&&t.searchParams.get("url")||e}catch(t){return e}};var ge,ye=new Uint8Array(16);function be(){if(!ge&&!(ge="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ge(ye)}var we=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Oe(e){return"string"==typeof e&&we.test(e)}for(var Ee=[],ke=0;ke<256;++ke)Ee.push((ke+256).toString(16).substr(1));function Pe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(Ee[e[t+0]]+Ee[e[t+1]]+Ee[e[t+2]]+Ee[e[t+3]]+"-"+Ee[e[t+4]]+Ee[e[t+5]]+"-"+Ee[e[t+6]]+Ee[e[t+7]]+"-"+Ee[e[t+8]]+Ee[e[t+9]]+"-"+Ee[e[t+10]]+Ee[e[t+11]]+Ee[e[t+12]]+Ee[e[t+13]]+Ee[e[t+14]]+Ee[e[t+15]]).toLowerCase();if(!Oe(r))throw TypeError("Stringified UUID is invalid");return r}function Se(e,t,r){var n=(e=e||{}).random||(e.rng||be)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return Pe(n)}function Ce(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function je(e,t){return e<>>32-t}var Te=function(e,t,r){function n(e,t,r,n){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}(t)),16!==t.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var i=new Uint8Array(16+e.length);if(i.set(t),i.set(e,t.length),(i=function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var i=0;i>>0;b=y,y=g,g=je(v,30)>>>0,v=m,m=E}r[0]=r[0]+m>>>0,r[1]=r[1]+v>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+y>>>0,r[4]=r[4]+b>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}(i))[6]=15&i[6]|80,i[8]=63&i[8]|128,r){n=n||0;for(var o=0;o<16;++o)r[n+o]=i[o];return r}return Pe(i)}try{n.name="v5"}catch(e){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}();const Ae=e=>!!e&&Oe(e),Ie=()=>{try{return Se()}catch(e){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}},De=(e,t)=>((e=!0)=>{const t=document.querySelector('meta[property="mrf:canonical"][content]'),r=null==t?void 0:t.getAttribute("content");return e?!!r&&me(r)||null:r||null})(t)||((e=!0)=>{const t=document.querySelector('link[rel="canonical"][href]'),r=null==t?void 0:t.getAttribute("href");return e?!!r&&me(r)||null:r||null})(t)||(e=>{if("fbia"===e){const e=document.createElement("a");return e.href=window.ia_document.shareURL,e.origin+e.pathname}return window.location.origin+window.location.pathname})(e),Ne="scrollHeight",_e=[{qs:".mrf-current .mrf-detailsBody",max:999},{qs:".mrf-current .mrf-sectionPart",max:999},{qs:".mrf-article-body",max:999},{qs:"article",max:1}];let Re,Le=0;const xe=(e,t=0,r=!0,n=!1)=>{let i;try{e&&(Re=r||!Re?_e.reduce(((e,t)=>{if(e)return e;const r=document.querySelectorAll(t.qs);return r&&r.length<=t.max?(e=>{const t=[];return e.forEach((e=>(e=>{const t=e.getBoundingClientRect();if(!t.width&&!t.height)return!1;const r=window.innerHeight||document.documentElement.clientHeight,n=window.innerWidth||document.documentElement.clientWidth,i=t.top<=r&&t.top+t.height>=0,o=t.left<=n&&t.left+t.width>=0;return i&&o})(e)&&t.push(e))),t.length>0?t.sort(((e,t)=>t.offsetTop-e.offsetTop))[0]:null})(Array.from(r)):null}),null):Re,Le=0);const n=(e=>{const t=(()=>{const e=document.body;return document.documentElement.scrollTop||!!e&&e.scrollTop||0})();return e?t-e.offsetTop:t})(Re),o=(e=>{const t=document.body;return e?e.offsetHeight:document.documentElement[Ne]||!!t&&t[Ne]||0})(Re),s=document.documentElement.clientHeight;i=t?(n+t)/o*100:n/(o-s)*100,i>Le?Le=i:i=Le}catch(e){i=50}return n?i:isNaN(i)?50:i>100?100:i<0?0:i},Me={},Ue=(()=>{try{const e="__test_session_storage__";return window.sessionStorage.setItem(e,e),window.sessionStorage.removeItem(e),!0}catch(e){return!1}})(),Ve=(e,t)=>{try{Ue?window.sessionStorage.setItem(e,t):Me[e]=t}catch(e){}},Fe=e=>{try{return Ue?window.sessionStorage.getItem(e):Me[e]}catch(e){return null}},qe=(e,t)=>{const r=JSON.stringify(t);Ve(e,r)},Be="https://events.newsroom.bi",Ge="https://compassingest-:replicaId.staging.cl15.k8s.mrf.io",ze="".concat(Be).concat("/ingest.php");let Ke,He=!0;const We={getConsent:()=>He,isInitiated:()=>!0,isRealCMP:()=>!0,setConsent:(e,t)=>{var r;He=!0===(r=t)||"true"===r,Ve("__nrCookieConsent",He),Ke&&Ke()},onChange:e=>{Ke=e}};function Je(e){return e||!1===e}function Xe(e){var t;return e.isInitiated()?null!=e&&null!==(t=e.isActive)&&void 0!==t&&t.call(e)?e.getConsent("cookies")?1:0:3:2}class $e{static wait(){return Promise.resolve(!0)}static resolve(){}}class Qe{static emitRecirculation(){}}function Ye(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return void 0!==e[t]||null===e[t]?e[t]:r}function Ze(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return Math.floor(e.getTime()/1e3)}const et=e=>{const t=document.cookie.indexOf(e+"="),r=t+e.length+1;if(!t&&e!==document.cookie.substring(0,e.length))return null;if(-1===t)return null;let n=document.cookie.indexOf(";",r);return-1===n&&(n=document.cookie.length),unescape(document.cookie.substring(r,n))},tt=(e,t,r,n,i)=>{const o=i?[i,".".concat(i)]:[""],s=new Date;s.setTime(s.getTime());const a="https:"===window.location.protocol;o.forEach((i=>{document.cookie=e+"="+escape(t)+(r?";expires="+r:"")+(n?";path="+n:"")+(i?";domain="+i:"")+(a?";secure":"")}))},rt=(e,t,r)=>{document.cookie="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=").concat(t||"/","; domain=").concat(r||"",";")},nt={score:"-1"},it="".concat("https://compassdynamicpaywall.mrf.io","/score/"),ot="".concat("https://compassdynamicpaywall.mrf.io","/predict/"),st=e=>{let{accountId:t,userId:r,siteUserId:n,totalPageviews:i,sessionDuration:o}=e;const s=new URLSearchParams(window.location.search),a=s.get("utm_medium"),c=s.get("utm_source"),u=["ac=".concat(t),"url=".concat(encodeURIComponent(window.location.href)),"u=".concat(r),"pp=".concat(document.referrer)];return n&&u.push("sui=".concat(n)),a&&u.push("utm_medium=".concat(a)),c&&u.push("utm_source=".concat(c)),i&&u.push("tp=".concat(i)),o&&u.push("sd=".concat(o)),u.join("&")};let at;const ct="https://events.newsroom.bi/data/rfv.php",ut={rfv:"-1"},lt=(e,t)=>{const r={rfv:e,ts:new Date};return Ve("".concat("compass_rfv","_").concat(t),JSON.stringify(r)),e},dt=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=new FormData;return i.append("u",t),i.append("ac",e),i.append("sui",r||""),i.append("nu","".concat(+n)),i},pt=e=>{const{ts:t,rfv:r}=(e=>{const t=Fe("".concat("compass_rfv","_").concat(e));let r={ts:null,rfv:null};if(t)try{r=JSON.parse(t)}catch(e){}return r})(e);return(e=>{if(!e)return!0;const t=new Date(e);return t.setMinutes(t.getMinutes()+30),t{try{const e="__test_local_storage__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}})(),mt=(e,t)=>{try{ft?window.localStorage.setItem(e,t):ht[e]=t}catch(e){}},vt=["data-mrf-recirculation","data-dtm-region","dtm-region"],gt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=e?" ".concat(e):e;return vt.map((e=>"[".concat(e,"]").concat(t))).join(",")};function yt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bt(e){for(var t=1;te&&e.split("?")[0].split("#")[0],Ot=()=>[...document.body.querySelectorAll(gt())].filter((e=>e.shadowRoot)),Et=e=>null!==e.getAttribute("data-mrf-layout")&&null===e.getAttribute("data-mrf-layout-anchor")?e.querySelector("[".concat("data-mrf-layout-anchor","]")):e,kt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=Et(e);if(!r)return null;if(r!==e)return kt(r,t);const n=function(e,t){if(!e)return null;let r=null;if(r=t?e.getAttribute(t):"mrfLink"in e&&e.mrfLink||e.getAttribute(he)||e.getAttribute("href")||e.getAttribute("data-mrf-uri"),null===r)return null;const n=pe(r||"");return"null"===n.origin?null:n.href}(e,t);return n?(e=>!!e&&pe(e).host===window.location.host)(n)?n&&wt(n):n:null};function Pt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const St=()=>(e=>{const t=(e=>{try{return ft?window.localStorage.getItem(e):ht[e]}catch(e){return null}})("___m_rec");if(t)try{return JSON.parse(t)}catch(e){}return null})(),Ct=(e,t)=>{if(ft){const r=function(e){for(var t=1;t{let{el:t}=e;t.getAttribute(r)!==n&&t.setAttribute(r,n||"")}))}const Tt=e=>e.hasAttribute("cmp-ltrk"),At=e=>e.hasAttribute("data-mrf-recirculation-skip"),It=e=>e.getAttribute("cmp-ltrk-idx"),Dt=(e,t,r)=>{e.setAttribute("cmp-ltrk",t),e.setAttribute("cmp-ltrk-idx","".concat(r))},Nt=e=>"[".concat("cmp-ltrk",'="').concat(e,'"]'),_t=(e,t,r)=>{const n=e.map((e=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";const r=function(){for(var e=arguments.length,r=new Array(e),n=0;n!Boolean(e))))return;const s="missing"===t?":not([".concat(o,"])"):"",a=i.join(" ");return gt("".concat(a).concat(s))};return{element:r(e.element,"data-mrf-layout"),anchor:e.anchor?r(e.element,e.anchor,"data-mrf-layout-anchor"):r(e.element,"data-mrf-layout-anchor"),img:r(e.element,e.img,"data-mrf-layout-img"),title:r(e.element,e.title,"data-mrf-layout-title")}}(e,"missing")[t])).filter(Boolean).join(",");n&&Array.from(document.querySelectorAll(n)).forEach((e=>e.setAttribute(r,"")))},Rt=e=>{e.length&&(_t(e,"element","data-mrf-layout"),_t(e,"anchor","data-mrf-layout-anchor"),_t(e,"img","data-mrf-layout-img"),_t(e,"title","data-mrf-layout-title"))},Lt=e=>{const t={};return e.reduce(((e,r)=>{const{el:n}=r,i=(e=>{try{const t=It(e);if(t)return parseInt(t,10)}catch(e){}})(n);return void 0!==i&&t[i]||(e.push(r),t[i]=!0),e}),[])},xt={"data-mrf-experiment":"tv","mrf-site-ext":"ac2","cmp-ltrk-ext":"n2","mrf-editorial-id":"".concat("meta:").concat("mrf-editorial-id")},Mt={"data-mrf-root-experiment":["tv","".concat("meta:","tv")]},Ut=(e,t,r,n)=>{if(n.startsWith("meta:")){var i;const[o,s]=n.split("meta:");null!==(i=e.meta)&&void 0!==i||(e.meta={}),e.meta[s]=t.getAttribute(r)}else e[n]=t.getAttribute(r)},Vt=(e,t)=>{let{el:r,root:n}=e;const i={url:kt(r,t)},o=It(r);if(o){if(parseInt(o,10)>=255)return;i.p=o}return n&&Object.entries(Mt).forEach((e=>{let[t,r]=e;n.getAttribute(t)&&r.forEach((e=>Ut(i,n,t,e)))})),Object.entries(xt).forEach((e=>{let[t,n]=e;r.getAttribute(t)&&Ut(i,r,t,n)})),i},Ft=(e,t)=>e.map(((e,r)=>{const n=Vt(e,t);return n?(parseInt(n.p,10)===r&&delete n.p,Object.keys(n).length>1?n:n.url):null})).filter((e=>!!e)),qt=(e,t)=>{var r;return!("object"!=typeof e||!t||"control"!==(null==e||null===(r=e.meta)||void 0===r?void 0:r.tv)||t.startsWith("IL_"))};let Bt;const Gt={};class zt{constructor(){this.timer=null}callOnTimer(e,t){this.timer=setTimeout((()=>{e()}),t)}cleanAndCallTimer(e,t){this.cleanTimer(),this.timer=setTimeout((()=>{e()}),t)}cleanTimer(){null!==this.timer&&(clearTimeout(this.timer),this.timer=null)}}class Kt{constructor(){this.store={}}push(e,t){this.store[e]?this.store[e].push(t):this.store[e]=[t]}clear(e){delete this.store[e]}contains(e,t){var r;return null===(r=this.store[e])||void 0===r?void 0:r.includes(t)}forEach(e){return Object.entries(this.store).forEach(e)}}const Ht=new zt,Wt=new Kt,Jt=new Kt,Xt=e=>{const t=[];Wt.forEach((e=>{let[r,n]=e;const i=n.map((e=>Vt(e.link,e.urlAttr))).filter((e=>!!e&&!qt(e,r)));i.length&&t.push({module:r,links:i}),Wt.clear(r)})),Object.keys(t).length>0&&e("impression",t)},$t=(e,t)=>{e.forEach((e=>{let{links:r,urlAttr:n,name:i}=e;i&&r.forEach((e=>{const r="element"===e.intersectionStrategy?e.el:Array.from(e.el.children).find((e=>e instanceof HTMLElement));r&&function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n="IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&"isIntersecting"in window.IntersectionObserverEntry.prototype?Promise.resolve():s.e(360).then(s.t.bind(s,360,23));e.setAttribute("mrfObservableId",Ie()),Gt[e.getAttribute("mrfObservableId")]=t,n.then((()=>{Bt=Bt||new IntersectionObserver((e=>{e.filter((e=>e.isIntersecting)).forEach((e=>{let{target:t}=e;const n=t.getAttribute("mrfObservableId");var i;n?(null===(i=Gt[n])||void 0===i||i.call(Gt,t),r||(Bt.unobserve(t),delete Gt[n])):Bt.unobserve(t)}))})),Bt.observe(e)}))}(r,(()=>{((e,t,r)=>{const n=It(t.el);Jt.contains(e,n)||(Wt.push(e,{link:t,urlAttr:r}),Jt.push(e,n))})(i,e,n),Ht.cleanAndCallTimer((()=>Xt(t)),1e3)}))}))})),Xt(t)};function Qt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yt(e){for(var t=1;t{const r=e.map((e=>{let{name:t,links:r,urlAttr:n}=e;const i=Ft(r,n);if(i.length)return{module:t,links:i}})).filter((e=>!!e));r.length&&t("elegible",r)},er=(e,t)=>{e.forEach((e=>{let{name:r,links:n,urlAttr:i}=e;n.forEach((e=>{e.el.addEventListener("click",(n=>{const o=e.el,s=kt(o,i);if(a=e.el,!n.__mrfTracked&&!0!==(null===(c=Et(a))||void 0===c?void 0:c.__mrfTracked)&&s){const o=Ft([e],i);if(o.length&&qt(o[0],r))return;((e,t)=>{const r=Et(e);t.__mrfTracked=!0,r&&(r.__mrfTracked=!0)})(e.el,n),Ct(r||"",s),o.length&&t("click",[{module:r,links:o}])}var a,c}))}))}))},tr=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>!0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body,r=arguments.length>2?arguments[2]:void 0;const n=r?"a":vt.map((e=>"[".concat(e,"] a[href], a[href][").concat(e,"], [").concat(e,"] article[data-mrf-uri], [").concat(e,"] [").concat("data-mrf-layout","]"))).join(","),i=Array.from(t.querySelectorAll(n)).reduce(((t,n)=>{const i=(e=>e&&e.closest(gt()))(n)||r,o=(e=>{var t;return null===(t=vt.reduce(((t,r)=>t||(null==e?void 0:e.getAttribute(r))),void 0))||void 0===t?void 0:t.replace(/"/g,'\\"')})(i),s=(null==i?void 0:i.getAttribute("data-mrf-recirculation-url-attribute"))||"",a=n,c=kt(a,s);if(c&&fe(a,c,!1),!o||!c||!e(o,a))return t;const u=t[o]||{links:[]},l="contents"===window.getComputedStyle(a,null).display;return Yt(Yt({},t),{},{[o]:Yt(Yt({},u),{},{links:[...u.links,{el:a,root:i,intersectionStrategy:l?"child":"element"}],urlAttr:s})})}),{});return(e=>{const t=Ot();Object.entries(e).forEach((e=>{let[r,{links:n,urlAttr:i}]=e;const o=(e=>Number(e.map((e=>e.getAttribute("cmp-ltrk-idx"))).filter(Boolean).map((e=>e?parseInt(e,10):0)).reduce(((e,t)=>isNaN(e)||e{const r=t.filter((t=>{return r=e,n=t,vt.some((e=>{var t;return(null===(t=n.getAttribute(e))||void 0===t?void 0:t.toLowerCase())===r.toLowerCase()}));var r,n})).reduce(((t,r)=>{var n;return[...t,...(null===(n=r.shadowRoot)||void 0===n?void 0:n.querySelectorAll(Nt(e)))||[]]}),[]);return[...document.querySelectorAll(Nt(e)),...r]})(r,t));let s=isNaN(o)?0:o+1;n.forEach((e=>{const{el:t,root:o}=e,a=kt(t,i);if(At(t)||Tt(t)||!a)return;const c=((e,t,r)=>{const n=r.closest("[".concat("data-mrf-layout","]")),i=null==n?void 0:n.getAttribute("cmp-ltrk-idx");return n&&n.mrfLink===t&&i&&!isNaN(i)?i:e})(s,a,t);Dt(t,r,c);const u=n.filter((e=>{let{el:r,root:n}=e;return r!==t&&n===o&&!At(r)&&!Tt(r)&&kt(r,i)===a}));if(u.length){var l;const t=((e,t)=>{const r=document.querySelectorAll(t);let n=e;for(let i=0;i<8&&n.parentElement;i++){const i=Array.from(n.querySelectorAll(t)).filter((e=>null!==e.offsetParent));if(i.length>=r.length&&i.some((t=>!t.isEqualNode(e))))return n;if(null!==n.getAttribute("data-mrf-layout"))return null;n=n.parentElement}return null})(u[0].el,'a[href="'.concat(a,'"]'));(null!==(l=null==t?void 0:t.querySelectorAll("a"))&&void 0!==l?l:[]).length<=u.length+5&&(u.forEach((e=>{let{el:t}=e;return Dt(t,r,c)})),(e=>{let t=!1;if(["data-mrf-experiment"].forEach((r=>{const n=e.find((e=>{let{el:t}=e;return t.hasAttribute("data-mrf-experiment")}));n&&(jt(n.el,e,r),t=!0)})),!t){const t=new MutationObserver((r=>{r.forEach((r=>{"attributes"===r.type&&"data-mrf-experiment"===r.attributeName&&(jt(r.target,e,"data-mrf-experiment"),t.disconnect())}))}));e.forEach((e=>{let{el:r}=e;t.observe(r,{attributes:!0,attributeFilter:["data-mrf-experiment"]})}))}})([...u,e]))}s++}))}))})(i),Object.entries(i).map((e=>{let[t,r]=e;return{name:t,links:r.links,urlAttr:r.urlAttr}}))},rr=e=>e.map((e=>{let{links:t,name:r,urlAttr:n}=e;return{name:r,urlAttr:n,links:Lt(t)}}));function nr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{parentNode:n,layouts:i=[]}=r;Rt(i);const o=tr(((e,t)=>!Tt(t)&&!At(t)),t,n),s=rr(o);return Zt(s,e),$t(o,e),er(o,e),o.length}function ir(e,t,r,n){nr(e,t,r)&&n(),oe((t=>{nr(e,t,r)&&n()}),t)}function or(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function sr(e){for(var t=1;tsr(sr({},t),{},{[r.n]:"elegible"!==e})),{})),t.map((e=>{if(n.find((t=>t.n===e.n))){const t=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).find((e=>function(e){var t;return"object"==typeof e&&null!==e&&!(null===(t=e.meta)||void 0===t||!t.tv)}(e)));return e?e.meta.tv:void 0}(e.e);return sr(sr({},e),{},{e:[...e.e,sr({url:" ",p:"255"},t?{tv:t}:{})]})}return e}))):t}process(e,t){return"elegible"===e?this.processModules(e,t,(e=>!Object.keys(this.modules).includes(e.n))):"impression"===e?this.processModules(e,t,(e=>void 0!==this.modules[e.n]&&!this.modules[e.n])):t}}const cr=["meta"],ur=async()=>{document&&"loading"===document.readyState&&await new Promise((e=>{document.addEventListener("DOMContentLoaded",e)}))},lr=(e,t)=>{e&&t&&Ct("fc:".concat(e),t)},dr=e=>{let{modules:t,blacklist:r,redirectionLinks:n}=e,i=!1;return r.forEach((e=>{let{selector:t}=e;const r=document.querySelectorAll(t);Array.from(r).forEach((e=>{e instanceof HTMLElement&&!e.hasAttribute("data-mrf-recirculation-skip")&&e.setAttribute("data-mrf-recirculation-skip","")}))})),null==n||n.forEach((e=>{let{selector:t,queryParam:r}=e;const n=document.querySelectorAll(t);Array.from(n).forEach((e=>{if(!e.hasAttribute("data-mrf-recirculation-skip"))try{const n=(t=new URL(decodeURIComponent(decodeURIComponent(e.href))).search).length?t.slice(1).split("&").map((e=>e.split("="))).reduce(((e,t)=>{let[r,n]=t;return bt(bt({},e),{},{[r]:n})}),{}):{};n[r]&&fe(e,decodeURIComponent(n[r]))}catch(e){}var t}))})),t.forEach((e=>{const t="selector"in e?e.selector:"[".concat(e.attr,"]"),r="name"in e?()=>e.name:t=>t.getAttribute(e.attr),n=document.querySelectorAll(t),o=e.urlAttribute;Array.from(n).forEach((e=>{(e=>(e=>(null===window||void 0===window?void 0:window.HTMLElementOrig)?e instanceof window.HTMLElementOrig:e instanceof HTMLElement)(e)&&!e.hasAttribute("data-mrf-recirculation-skip")&&!e.hasAttribute("data-mrf-recirculation")&&!e.closest("[data-mrf-experience]"))(e)&&(e.setAttribute("data-mrf-recirculation",r(e)),o&&e.setAttribute("data-mrf-recirculation-url-attribute",o),i=!0)}))})),i},pr=e=>"object"==typeof e&&null!==e?L(e,cr):e;class hr{t;o=0;i=[];u(e){if(e.hadRecentInput)return;const t=this.i[0],r=this.i.at(-1);this.o&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this.o+=e.value,this.i.push(e)):(this.o=e.value,this.i=[e]),this.t?.(e)}}const fr=()=>{const e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart{if("loading"===document.readyState)return"loading";{const t=fr();if(t){if(e{const t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},gr=e=>{let t="";try{for(;9!==e?.nodeType;){const r=e,n=r.id?"#"+r.id:[vr(r),...Array.from(r.classList).sort()].join(".");if(t.length+n.length>99)return t||n;if(t=t?n+">"+t:n,r.id)break;e=r.parentNode}}catch{}return t},yr=new WeakMap;function br(e,t){return yr.get(e)||yr.set(e,new t),yr.get(e)}let wr=-1;const Or=()=>wr,Er=e=>{addEventListener("pageshow",(t=>{t.persisted&&(wr=t.timeStamp,e(t))}),!0)},kr=(e,t,r,n)=>{let i,o;return s=>{t.value>=0&&(s||n)&&(o=t.value-(i??0),(o||void 0===i)&&(i=t.value,t.delta=o,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,r),e(t)))}},Pr=e=>{requestAnimationFrame((()=>requestAnimationFrame((()=>e()))))},Sr=()=>fr()?.activationStart??0,Cr=(e,t=-1)=>{const r=fr();let n="navigate";return Or()>=0?n="back-forward-cache":r&&(document.prerendering||Sr()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:n}},jr=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const n=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return n.observe({type:e,buffered:!0,...r}),n}}catch{}},Tr=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let Ar=-1;const Ir=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,Dr=e=>{"hidden"===document.visibilityState&&Ar>-1&&(Ar="visibilitychange"===e.type?e.timeStamp:0,_r())},Nr=()=>{addEventListener("visibilitychange",Dr,!0),addEventListener("prerenderingchange",Dr,!0)},_r=()=>{removeEventListener("visibilitychange",Dr,!0),removeEventListener("prerenderingchange",Dr,!0)},Rr=()=>{if(Ar<0){const e=Sr(),t=document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter((t=>"hidden"===t.name&&t.startTime>e))[0]?.startTime;Ar=t??Ir(),Nr(),Er((()=>{setTimeout((()=>{Ar=Ir(),Nr()}))}))}return{get firstHiddenTime(){return Ar}}},Lr=e=>{document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},xr=[1800,3e3],Mr=(e,t={})=>{Lr((()=>{const r=Rr();let n,i=Cr("FCP");const o=jr("paint",(e=>{for(const t of e)"first-contentful-paint"===t.name&&(o.disconnect(),t.startTime{i=Cr("FCP"),n=kr(e,i,xr,t.reportAllChanges),Pr((()=>{i.value=performance.now()-r.timeStamp,n(!0)}))})))}))},Ur=[.1,.25],Vr=e=>e.find((e=>1===e.node?.nodeType))||e[0];let Fr=0,qr=1/0,Br=0;const Gr=e=>{for(const t of e)t.interactionId&&(qr=Math.min(qr,t.interactionId),Br=Math.max(Br,t.interactionId),Fr=Br?(Br-qr)/7+1:0)};let zr;const Kr=()=>zr?Fr:performance.interactionCount??0;let Hr=0;class Wr{l=[];h=new Map;m;p;v(){Hr=Kr(),this.l.length=0,this.h.clear()}M(){const e=Math.min(this.l.length-1,Math.floor((Kr()-Hr)/50));return this.l[e]}u(e){if(this.m?.(e),!e.interactionId&&"first-input"!==e.entryType)return;const t=this.l.at(-1);let r=this.h.get(e.interactionId);if(r||this.l.length<10||e.duration>t.T){if(r?e.duration>r.T?(r.entries=[e],r.T=e.duration):e.duration===r.T&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],T:e.duration},this.h.set(r.id,r),this.l.push(r)),this.l.sort(((e,t)=>t.T-e.T)),this.l.length>10){const e=this.l.splice(10);for(const t of e)this.h.delete(t.id)}this.p?.(r)}}}const Jr=e=>{const t=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?e():(t(e=Tr(e)),document.addEventListener("visibilitychange",e,{once:!0}))},Xr=[200,500];class $r{m;u(e){this.m?.(e)}}const Qr=[2500,4e3];class Yr{constructor(){this.cls=0,this.lcp=0,this.fcp=0,this.wv=0,this.tbt=0,this.inp=0,this.lcpOffender=null,this.clsOffender=null,this.inpOffender=null,Array.prototype.at&&(this.setTbt(),this.setINP(),this.setLCP(),this.setFCP(),this.setCLS())}hasWebVitals(){return this.lcp||this.fcp||this.cls||this.inp?1:0}setLCP(){((e,t={})=>{const r=br(t=Object.assign({},t),$r),n=new WeakMap;r.m=e=>{if(e.element){const r=(t.generateTarget??gr)(e.element);n.set(e,r)}},((e,t={})=>{Lr((()=>{const r=Rr();let n,i=Cr("LCP");const o=br(t,$r),s=e=>{t.reportAllChanges||(e=e.slice(-1));for(const t of e)o.u(t),t.startTime{s(a.takeRecords()),a.disconnect(),n(!0)}));for(const e of["keydown","click","visibilitychange"])addEventListener(e,(()=>Jr(r)),{capture:!0,once:!0});Er((r=>{i=Cr("LCP"),n=kr(e,i,Qr,t.reportAllChanges),Pr((()=>{i.value=performance.now()-r.timeStamp,n(!0)}))}))}}))})((t=>{const r=(e=>{let t={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:e.value};if(e.entries.length){const r=fr();if(r){const i=r.activationStart||0,o=e.entries.at(-1),s=o.url&&performance.getEntriesByType("resource").filter((e=>e.name===o.url))[0],a=Math.max(0,r.responseStart-i),c=Math.max(a,s?(s.requestStart||s.startTime)-i:0),u=Math.min(e.value,Math.max(c,s?s.responseEnd-i:0));t={target:n.get(o),timeToFirstByte:a,resourceLoadDelay:c-a,resourceLoadDuration:u-c,elementRenderDelay:e.value-u,navigationEntry:r,lcpEntry:o},o.url&&(t.url=o.url),s&&(t.lcpResourceEntry=s)}}return Object.assign(e,{attribution:t})})(t);e(r)}),t)})((e=>{var t;this.lcp=e.value,this.lcp>2500&&null!==(t=e.attribution)&&void 0!==t&&t.target&&(this.lcpOffender=e.attribution.target)}))}setFCP(){((e,t={})=>{Mr((t=>{const r=(e=>{let t={timeToFirstByte:0,firstByteToFCP:e.value,loadState:mr(Or())};if(e.entries.length){const r=fr(),n=e.entries.at(-1);if(r){const i=r.activationStart||0,o=Math.max(0,r.responseStart-i);t={timeToFirstByte:o,firstByteToFCP:e.value-o,loadState:mr(e.entries[0].startTime),navigationEntry:r,fcpEntry:n}}}return Object.assign(e,{attribution:t})})(t);e(r)}),t)})((e=>this.fcp=e.value))}setINP(){((e,t={})=>{const r=br(t=Object.assign({},t),Wr);let n=[],i=[],o=0;const s=new WeakMap,a=new WeakMap;let c=!1;const u=()=>{c||(Jr(l),c=!0)},l=()=>{const e=r.l.map((e=>s.get(e.entries[0]))),t=i.length-50;i=i.filter(((r,n)=>n>=t||e.includes(r)));const a=new Set;for(const e of i){const t=d(e.startTime,e.processingEnd);for(const e of t)a.add(e)}const u=n.length-1-50;n=n.filter(((e,t)=>e.startTime>o&&t>u||a.has(e))),c=!1};r.m=e=>{const t=e.startTime+e.duration;let r;o=Math.max(o,e.processingEnd);for(let n=i.length-1;n>=0;n--){const o=i[n];if(Math.abs(t-o.renderTime)<=8){r=o,r.startTime=Math.min(e.startTime,r.startTime),r.processingStart=Math.min(e.processingStart,r.processingStart),r.processingEnd=Math.max(e.processingEnd,r.processingEnd),r.entries.push(e);break}}r||(r={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:t,entries:[e]},i.push(r)),(e.interactionId||"first-input"===e.entryType)&&s.set(e,r),u()},r.p=e=>{if(!a.get(e)){const r=(t.generateTarget??gr)(e.entries[0].target);a.set(e,r)}};const d=(e,t)=>{const r=[];for(const i of n)if(!(i.startTime+i.durationt)break;r.push(i)}return r};jr("long-animation-frame",(e=>{n=n.concat(e),u()})),((e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&Lr((()=>{"interactionCount"in performance||zr||(zr=jr("event",Gr,{type:"event",buffered:!0,durationThreshold:0}));let r,n=Cr("INP");const i=br(t,Wr),o=e=>{Jr((()=>{for(const t of e)i.u(t);const t=i.M();t&&t.T!==n.value&&(n.value=t.T,n.entries=t.entries,r())}))},s=jr("event",o,{durationThreshold:t.durationThreshold??40});r=kr(e,n,Xr,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),document.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&(o(s.takeRecords()),r(!0))})),Er((()=>{i.v(),n=Cr("INP"),r=kr(e,n,Xr,t.reportAllChanges)})))}))})((t=>{const n=(e=>{const t=e.entries[0],n=s.get(t),i=t.processingStart,o=Math.max(t.startTime+t.duration,i),c=Math.min(n.processingEnd,o),u=n.entries.sort(((e,t)=>e.processingStart-t.processingStart)),l=d(t.startTime,c),p=r.h.get(t.interactionId),h={interactionTarget:a.get(p),interactionType:t.name.startsWith("key")?"keyboard":"pointer",interactionTime:t.startTime,nextPaintTime:o,processedEventEntries:u,longAnimationFrameEntries:l,inputDelay:i-t.startTime,processingDuration:c-i,presentationDelay:o-c,loadState:mr(t.startTime),longestScript:void 0,totalScriptDuration:void 0,totalStyleAndLayoutDuration:void 0,totalPaintDuration:void 0,totalUnattributedDuration:void 0};return(e=>{if(!e.longAnimationFrameEntries?.length)return;const t=e.interactionTime,r=e.inputDelay,n=e.processingDuration;let i,o,s=0,a=0,c=0,u=0;for(const c of e.longAnimationFrameEntries){a=a+c.startTime+c.duration-c.styleAndLayoutStart;for(const e of c.scripts){const c=e.startTime+e.duration;if(cu&&(o=e.startTime=t+r+n?"presentation-delay":"processing-duration",i=e,u=l)}}const l=e.longAnimationFrameEntries.at(-1),d=l?l.startTime+l.duration:0;d>=t+r+n&&(c=e.nextPaintTime-d),i&&o&&(e.longestScript={entry:i,subpart:o,intersectingDuration:u}),e.totalScriptDuration=s,e.totalStyleAndLayoutDuration=a,e.totalPaintDuration=c,e.totalUnattributedDuration=e.nextPaintTime-t-s-a-c})(h),Object.assign(e,{attribution:h})})(t);e(n)}),t)})((e=>{var t;if(this.inp=e.value,this.inp>200&&null!==(t=e.attribution)&&void 0!==t&&t.interactionTarget){var r,n,i,o;const t=document.location.href;this.inpOffender="".concat(null===(r=e.attribution)||void 0===r?void 0:r.interactionType,"::").concat(e.attribution.interactionTarget),this.inpOffenderStatus=e.attribution.loadState,this.inpOffenderScript=null===(n=e.attribution.longestScript)||void 0===n||null===(n=n.entry)||void 0===n?void 0:n.sourceURL,this.inpOffenderScript===t&&(this.inpOffenderScript="inline"),this.inpOffenderScriptFn=null===(i=e.attribution.longestScript)||void 0===i||null===(i=i.entry)||void 0===i?void 0:i.sourceFunctionName,this.inpOffenderScriptInvoke=null===(o=e.attribution.longestScript)||void 0===o||null===(o=o.entry)||void 0===o?void 0:o.invoker,this.inpOffenderScriptInvoke===t&&(this.inpOffenderScriptInvoke="inline")}}),{reportAllChanges:!0})}setTbt(){return!!((e,t)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{e.getEntries().map((e=>t(e)))}));return r.observe({type:e,buffered:!0}),r}}catch(e){}})("longtask",(e=>{this.tbt+=e.duration-50}))}setCLS(){((e,t={})=>{const r=br(t=Object.assign({},t),hr),n=new WeakMap;r.t=e=>{if(e.sources.length){const r=Vr(e.sources);if(r){const e=(t.generateTarget??gr)(r.node);n.set(r,e)}}},((e,t={})=>{Mr(Tr((()=>{let r,n=Cr("CLS",0);const i=br(t,hr),o=e=>{for(const t of e)i.u(t);i.o>n.value&&(n.value=i.o,n.entries=i.i,r())},s=jr("layout-shift",o);s&&(r=kr(e,n,Ur,t.reportAllChanges),document.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&(o(s.takeRecords()),r(!0))})),Er((()=>{i.o=0,n=Cr("CLS",0),r=kr(e,n,Ur,t.reportAllChanges),Pr((()=>r()))})),setTimeout(r))})))})((t=>{const r=(e=>{let t={};if(e.entries.length){const r=e.entries.reduce(((e,t)=>e.value>t.value?e:t));if(r?.sources.length){const e=Vr(r.sources);e&&(t={largestShiftTarget:n.get(e),largestShiftTime:r.startTime,largestShiftValue:r.value,largestShiftSource:e,largestShiftEntry:r,loadState:mr(r.startTime)})}}return Object.assign(e,{attribution:t})})(t);e(r)}),t)})((e=>{var t;this.cls=e.value,this.cls>.1&&null!==(t=e.attribution)&&void 0!==t&&t.largestShiftTarget&&(this.clsOffender=e.attribution.largestShiftTarget,this.clsOffenderStatus=e.attribution.loadState)}),{reportAllChanges:!0})}}function Zr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function en(e){for(var t=1;t{tn.cleanTimer()},on=(e,t)=>{tn.callOnTimer(t,e)},{userIdPromise:sn,resolveFinalUserId:an}=(()=>{let e=()=>{};return{userIdPromise:new Promise((t=>{e=t})),resolveFinalUserId:e}})();class cn{constructor(e){this.compassTracker=e}getUserId(){return{userIdPromise:sn,actualUserId:this.compassTracker.permanentCookie.userId}}processIdentity(e){e&&(Ae(e.uid)&&(this.compassTracker.permanentCookie.userId=e.uid,this.compassTracker.markAsModified("permanent")),Ae(e.sid)&&(this.compassTracker.temporalCookie.sessionId=e.sid,this.compassTracker.markAsModified("temporal")),this.compassTracker.saveCookies()),Ae(this.compassTracker.permanentCookie.userId)&&an(this.compassTracker.permanentCookie.userId)}}const un={web:0,fbia:2,iosapp:3,androidapp:4,flowcards:5,pressreader:6,app:7,applenews:8,pressreaderandroid:11,pressreaderios:12},ln=e=>{if(isNaN(e)){const t=e.toLowerCase().replace(/ /g,"");return void 0!==un[t]?un[t]:null}return e};var dn;function pn(e){return e.update=Date.now(),function(e,t){try{return window.localStorage.setItem("marfeel-sdk-store",t),!0}catch(e){return!1}}(0,btoa(JSON.stringify(e)))}function hn(){return void 0===dn&&(dn=function(){var e=function(e){try{return window.localStorage.getItem("marfeel-sdk-store")}catch(e){return null}}();if(e)return JSON.parse(atob(e));var t={creation:Date.now(),update:Date.now(),entries:{}};return pn(t),t}()),dn}function fn(e){return Promise.resolve(hn().entries[e])}function mn(e,t){return hn().entries[e]=t,Promise.resolve(pn(hn()))}function vn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;if(null==r||""===r){let r=0;for(;r{vn(yn,e,t)};let wn=[],On=null;const En=()=>On=null,kn=e=>{const t=e.parentElement;t&&(t.addEventListener("mouseenter",(()=>(e=>{On=e})(e))),t.addEventListener("mouseleave",En))},Pn=(e,t,r)=>{const n=Array.from(e).filter((e=>!e.hasAttribute("cmp-cnvtrk")));for(const e of n)e.addEventListener(t,(()=>{const t=e.dataset.mrfConversion;t&&r(t)})),e.setAttribute("cmp-cnvtrk","true")},Sn=e=>{const t=document.querySelectorAll("iframe[data-mrf-conversion]"),r=document.querySelectorAll("form[data-mrf-conversion]"),n=document.querySelectorAll("button[data-mrf-conversion], a[data-mrf-conversion]");Pn(r,"submit",e),Pn(n,"click",e),(e=>{const t=Array.from(e).filter((e=>!e.hasAttribute("cmp-cnvtrk")));for(const e of t)kn(e),e.setAttribute("cmp-cnvtrk","true")})(t)},Cn=e=>{oe((()=>{Sn(e)})),Sn(e)},jn="compass-conversions-counter-entry",Tn=e=>{let t=(null!=e?e:"").toString();return!t.startsWith("/")&&t.includes("/")&&(t="/".concat(t)),t.split("/").map((e=>e.split(",").shift())).join("/")};class An{constructor(){this.newAds=[],this.newAdUnitPaths=[],this.trackedAds={},this.refreshedAds={}}setInterstitialSlot(e){this.interstitialSlot=e}trackAdEvent(e,t){const r=t.getSlotElementId();let n=!1;if("slotRenderEnded"===e&&(this.trackedAds[r]&&(this.refreshedAds[r]=!0),this.trackedAds[r]=!1,n=t!==this.interstitialSlot&&!this.refreshedAds[r]),"slotVisibilityChanged"===e&&(n=(t===this.interstitialSlot||this.refreshedAds[r])&&!this.trackedAds[r]),n){const e=t.getAdUnitPath(),n=t.getResponseInformation()&&t.getResponseInformation().lineItemId;this.trackAdRenderedInternal(n||e,e),this.trackedAds[r]=!0}return n}trackAdEventLegacy(e,t,r){return"slotRenderEnded"===e&&(this.trackAdRenderedInternal(t||r,r),!0)}trackAdRenderedInternal(e,t){this.newAds.push(Tn(e)),t&&this.newAdUnitPaths.push(Tn(t))}getAds(){return this.newAds.splice(0)}getAdUnits(){return this.newAdUnitPaths.splice(0)}}function In(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dn(e){for(var t=1;t{((e,t)=>{const r={requests:{ads:e},triggers:{renderEnd:{on:"ad-render-end",request:"ads",selector:"body",extraUrlParams:Dn(Dn({},t),{},{l:"${totalEngagedTime}",sc:xe(!1),a:"-1",ps:"${navTiming(navigationStart)}",n:"${timestamp}",ads:"$IF(${adSlot}, ${adSlot}, -1)amp",ampFirst:"true"})}},transport:{beacon:!0,xhrpost:!0,image:!1}},n=()=>{document.body.appendChild((e=>{const t=document.createElement("amp-analytics"),r=document.createElement("script");return r.type="application/json",r.innerText=JSON.stringify(e),t.appendChild(r),t})(r))};"loading"===document.readyState?window.addEventListener("load",(()=>n())):n()})(e,t)};class _n{constructor(){this.events={}}on(e,t){void 0===this.events[e]&&(this.events[e]={listeners:[]}),this.events[e].listeners.push(t)}remove(e,t){this.events[e].listeners=this.events[e].listeners.filter((e=>e.toString()!==t.toString()))}dispatch(e,t){this.events[e]&&this.events[e].listeners.forEach((e=>{e(t)}))}}function Rn(e,t){try{const r=[...t],n=r.shift();let i;if(Array.isArray(e)){const r=e.map((e=>Rn(e,t))).filter(Boolean);i=r.length&&r[0]}else i=e[n];return 0===r.length?i?null==i?void 0:i.toString():null:Rn(i,r)}catch(e){return null}}function Ln(e){var t,r;return null!==(r=null!==(t=e["@type"])&&void 0!==t?t:e.type)&&void 0!==r?r:void 0}function xn(e){var t,r,n,i;if(e)return"string"==typeof e?e:Object.assign(Object.assign({},e),{"@type":null!==(r=null!==(t=e["@type"])&&void 0!==t?t:e.type)&&void 0!==r?r:void 0,"@id":null!==(i=null!==(n=e["@id"])&&void 0!==n?n:e.id)&&void 0!==i?i:void 0})}function Mn(e){var t,r,n,i;return Object.assign(Object.assign({},e),{"@type":null!==(r=null!==(t=e["@type"])&&void 0!==t?t:e.type)&&void 0!==r?r:void 0,"@id":null!==(i=null!==(n=e["@id"])&&void 0!==n?n:e.id)&&void 0!==i?i:void 0,mainEntityOfPage:xn(e.mainEntityOfPage)})}function Un(e,t){const r=Ln(e);return!!r&&t.includes(r)}function Vn(e,t,r,n=new Set){if(!e||n.has(e))return!1;if(e===t)return!0;n.add(e);const i=((e,t)=>e.find((e=>((e,t)=>"@id"in e&&e["@id"]===t)(e,t))))(r,e);return!!(null==i?void 0:i.url)&&Vn(i.url,t,r,n)}function Fn(e,t){return e.filter((e=>Un(e,[t])))}function qn(e,t,r){const n=e.mainEntityOfPage;return Vn(n&&"object"==typeof n&&"@id"in n?n["@id"]:n,t,r)}function Bn(e,t){return e.reduce(((e,t)=>(Object.keys(t).forEach((r=>{e[r]=t[r]})),e)),{"@type":t})}const Gn=["ReportageNewsArticle","AnalysisNewsArticle","OpinionNewsArticle","ReviewNewsArticle","BackgroundNewsArticle","NewsArticle","ScholarlyArticle","Report","TechArticle","AskPublicNewsArticle","SatiricalArticle","AdvertiserContentArticle","BlogPosting","LiveBlogPosting","SocialMediaPosting","Recipe","Article"];var zn=Object.freeze({__proto__:null,ARTICLE_ENTITY_TYPES_PRIORITIES:Gn,extract:function({attributePath:e,entitiesConstraint:t},r){var n;try{const i=document.querySelectorAll('script[type="application/ld+json"]');return i&&e?Rn(null!==(n=function(e,t,r){const n=(e=>Array.from(e).map((e=>{var t;try{const r=e.textContent?((null===(t=e.textContent)||void 0===t?void 0:t.trim())||"").replace(/[\n\t]/g,""):"{}";return JSON.parse(`${r}`)}catch(e){return null}})).filter(Boolean).map((e=>e instanceof Array?e:[e])).map((e=>e.map((e=>(e=>{if("@graph"in e){const t=e["@graph"];if(t instanceof Array)return[e,...t];if(t)return[e,t]}return[e]})(e))).flat().filter((e=>!!Ln(e))).map(Mn))).flat())(e),i=function(e,t){return e.filter((e=>e.mainEntityOfPage&&Un(e,t)))}(n,t);let o;return o=1===i.length?i[0]:i.length>1&&r?function(e,t,r,n){for(const i of r){const r=Fn(e,i).filter((e=>qn(e,t,n)));if(r.length>0)return Bn(r,i)}return null}(i,r,t,n):function(e,t){for(const r of t){const t=Fn(e,r);if(t.length>0)return Bn(t,r)}return null}(n,t),o}(i,null!=t?t:Gn,r))&&void 0!==n?n:[],e):null}catch(e){return null}}});const Kn=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(\.\d+)?(Z|[+-]\d{2}:\d{2})$/;function Hn(e){let t;return t=Kn.test(e)?new Date(e):new Date(e+"Z"),t.getTime()}const Wn={jsonLD:zn,querySelector:Object.freeze({__proto__:null,extract:function({queries:e}){if(!e)return null;const t=e.reduce(((e,{query:t,attribute:r})=>(document.querySelectorAll(t).forEach((t=>{r?e.push(t.getAttribute(r)||null):t.textContent&&e.push(t.textContent)})),e)),[]).filter((e=>null!==e));return 1===t.length||t.length>1&&t.every((e=>e===t[0]||Hn(e)===Hn(t[0])))?t[0]:null}})},Jn=(e,t)=>{for(const r of e){const e=Wn[r.type].extract(r,t);if(e)return e}return null},Xn=[{type:"jsonLD",attributePath:["dateModified"],entitiesConstraint:Gn},{type:"querySelector",queries:[{query:'meta[property="article:modified_time"]',attribute:"content"}]},{type:"querySelector",queries:[{query:'meta[itemprop="dateModified"]',attribute:"content"}]},{type:"querySelector",queries:[{query:'time[itemprop="dateModified"]',attribute:"datetime"}]},{type:"querySelector",queries:[{query:'time[itemprop="dateModified"]',attribute:"content"}]},{type:"querySelector",queries:[{query:'[itemprop="dateModified"]'}]}];var $n=Object.freeze({__proto__:null,extract:e=>Jn(Xn,e)});const Qn=[{type:"jsonLD",attributePath:["datePublished"],entitiesConstraint:Gn},{type:"querySelector",queries:[{query:'[itemtype="http://schema.org/NewsArticle"] time[itemprop="datePublished"]',attribute:"datetime"}]},{type:"querySelector",queries:[{query:'meta[property="article:published_time"]',attribute:"content"},{query:':not([itemprop="image"]) > meta[itemprop="datePublished"]',attribute:"content"},{query:'time[itemprop="datePublished"]',attribute:"datetime"},{query:'time[itemprop="datePublished"]',attribute:"content"},{query:'meta[name="cXenseParse:recs:publishtime"]',attribute:"content"}]},{type:"querySelector",queries:[{query:'[itemprop="datePublished"]'}]}];var Yn=Object.freeze({__proto__:null,extract:e=>Jn(Qn,e)});const Zn=[{type:"jsonLD",attributePath:["offers","lowPrice"],entitiesConstraint:["Product"]},{type:"jsonLD",attributePath:["offers","price"],entitiesConstraint:["Product"]},{type:"querySelector",queries:[{query:'[itemprop="offers"] [itemprop="price"]',attribute:"content"}]},{type:"querySelector",queries:[{query:'meta[property="product:price:amount"]',attribute:"content"}]}];var ei=Object.freeze({__proto__:null,extract:e=>Jn(Zn,e)});const ti=[{type:"jsonLD",attributePath:["offers","availability"],entitiesConstraint:["Product"]},{type:"querySelector",queries:[{query:'[itemprop="offers"] link[itemprop="availability"]',attribute:"href"},{query:'[itemprop="offers"] [itemprop="availability"]',attribute:"content"}]},{type:"querySelector",queries:[{query:'meta[property="product:availability"]',attribute:"content"}]}],ri={updateTime:$n,publishTime:Yn,availability:Object.freeze({__proto__:null,extract:e=>Jn(ti,e)}),price:ei},ni=(e,t)=>ri[e].extract(t),ii=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{if(t){const t=et(e);return JSON.parse(t)||{}}return(e=>{const t=Fe(e);if(t)try{return JSON.parse(t)}catch(e){}return null})(e)||{}}catch(e){return{}}},oi=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=t?ii("".concat(e,"_").concat(t),r):null;return n&&0!==Object.keys(n).length?n:ii(e,r)};function si(e,t){let r=0;return e.active&&(r=5),Math.min(t-e.time,r)}class ai{constructor(){this.totalEngagedTime=0,this.prevEvent=void 0}pushEvent(e){this.prevEvent&&this.prevEvent.time{document.addEventListener(e,(()=>this.eventTriggered(!0)))})),ui.forEach((e=>{document.addEventListener(e,(()=>this.eventTriggered(!1)))})),$((()=>this.eventTriggered(!1))),Q((()=>this.eventTriggered(!0)))}getTimeSinceStart(){const e=Date.now()-this.startTime;return e>0?e:0}eventTriggered(e){e&&this.listeningActive||!e&&this.listeningInactive||(this.listeningActive=e,this.listeningInactive=!e,this.handleEvent(e))}handleEvent(e){const t=Math.floor(this.getTimeSinceStart()/1e3);setTimeout((()=>{this.listeningActive=!1,this.listeningInactive=!1}),1e3),this.acitvityHistory.pushEvent({active:e,time:t})}getTotalEngagedTime(){const e=Math.floor(this.getTimeSinceStart()/1e3);return this.acitvityHistory.getTotalEngagedTime(e)}}function di(){let e=arguments.length>1?arguments[1]:void 0,t=!1;(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((e=>{let{selector:r,name:n}=e;document.querySelectorAll(r).forEach((e=>{e.getAttribute("data-mrf-conversion")||(t=!0,e.setAttribute("data-mrf-conversion",n))}))})),t&&Sn(e)}function pi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const hi=function(e){const t=e=>e&&"object"==typeof e;for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i(Object.keys(r).forEach((n=>{const i=e[n],o=r[n];Array.isArray(i)&&Array.isArray(o)?e[n]=[...i].concat(...o):t(i)&&t(o)?e[n]=hi(i,o):e[n]=o})),e)),e)},fi=(e,t)=>{const r=(e=>{try{const t=new URL(e);return Array.from(t.searchParams.entries()).filter((e=>{let[t]=e;return t.startsWith("mrf_")})).reduce(((e,t)=>{let[r,n]=t;return e[r]=n,e}),{})}catch(e){return{}}})(e);if(r[t])return"string"==typeof r[t]&&Ae(r[t])?r[t]:void 0},mi=e=>fi(e,"mrf_s"),vi=e=>fi(e,"mrf_u"),gi=e=>[...new Set(e)],yi=(e,t)=>{let r=null;return function(){for(var n=arguments.length,i=new Array(n),o=0;o{e(...i)}),t)}},bi="".concat("https://experiences.mrf.io","/passexperience/dw-check.html?v=6");let wi=!1;const Oi=new Set,Ei=e=>{mn("usegs",e)},ki=["userSegments","userVars"];function Pi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Si(e){for(var t=1;t{},ji=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return{api:new J(Ge),replicas:e,preprocess:e=>e instanceof FormData?(e.append("fk",1),e):(null==e?void 0:e.constructor)===Object?Si(Si({},e),{},{fk:1}):e}};class Ti{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:We,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$e,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Qe;var i;this.trackerName=window.__mrfCompass?"__mrfCompass":"__newsroom_js",window[this.trackerName].data=window[this.trackerName].data||[],this.handleImmediateCallsToDataArray(),this.tracker=window[this.trackerName],this.userIdManager=new cn(this),this.accountId=this.tracker.accountId,this.cookieDomain=(e=>{if(null===e){const e=(e=>{const t=e.split(".").filter((e=>"www"!==e));if(t.length<2||de.test(e))return null;if(2===t.length)return t.join(".");const r=t.slice(-2),n=t.length-1;return(e=>{const t=e.length-1;return 2===e[t].length&&!!["avz","co","com","df","gob","gov","org","rt"].includes(e[t-1])})(r)&&r.unshift(t[n-2]),r.join(".")})(window.location.hostname);return(e=>{const t="mrf_cookie";tt(t,"ok",void 0,"/",e);const r=et(t);return rt(t,"/",e),!!r})(e)?e:window.location.hostname}return e})(this.tracker.cookieDomain||null),this.initFlags(),this.adsTracker=new An,this.adsDelay=1e4,this.temporalCookieModified=!1,this.permanentCookieModified=!1,this.consentManager=t,this.setupConsent(this.tracker),this.synchronizer=r,this.events=n,this.dispatcher=new _n,this.moduleTracker=new ar,this.endpointDomain=(e=>{let{endpoint:t}=e;return t&&ae(t)||Be})(this.tracker),this.api=((...e)=>new Z(...e))(...[new J(this.endpointDomain,{fallback:"https://icu.newsroom.bi",fallbackWindow:6e4,onModeChange:(e,t)=>{e===z.FALLBACK&&this.setPageVar("mrfNE",t)}}),this.tracker.stress&&ji(this.tracker.stressReplicas)].filter(Boolean)),this.initializeCookies(),this.tracker.lazy||this.initialize(),this.synchronizer.wait("pageInitialized").then((()=>{$((()=>{(e=>{this.synchronizer.resolve("experimentationDisabled",!1)})(),this.isLastEvent=!0,this.collectAndTrackPage()})),Q(yi((()=>{this.isLastEvent&&(nn(),this.trackPage())}),500))})),i=()=>this.trackNewPage({rs:"back forward cache"}),window.addEventListener("pageshow",(e=>{e.persisted&&i()}),{capture:!0}),function(e,t,r){r?Nn(e,t):window.customElements.whenDefined("amp-ad").then((()=>Nn(e,t)))}("".concat(this.endpointDomain).concat("/ingest.php"),this.getBasicConfig(),this.tracker.isAmpFirst),this.tracker.setFCSource=lr,this.contextVariables={},this.initializeRFV(),this.listenForScrollDepth(),this.trackedConversions={}}initializeRFV(){this.consentManager.getConsent("personalization")||this.consentManager.onChange((()=>{this.getRFV(Ci)}))}initFlags(){var e,t;const r=(e,t)=>Number.isFinite(e)?Math.min(e,365):t;this.tracker.useLocalstorageForUserVars=this.tracker.useLocalstorageForUserVars&&ft||!1,this.tracker.lazy=this.tracker.lazy||!1,this.tracker.isAmpFirst=this.tracker.isAmpFirst||!1,this.tracker.isCookieSandboxed=this.tracker.isCookieSandboxed||[1464,3838].includes(this.accountId);const n=Si({lazy:!1,layouts:[],modules:[]},this.tracker.rm||{});this.tracker.rm=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r={},n=function(e){for(var t=1;tObject.assign(r,{set:t=>{const r=t instanceof Function?t(n):t;e(hi(n,r))}}))),r);return t&&i.set({}),i}(n,!n.lazy),this.tracker.usePerformanceEndpoint=this.tracker.usePerformanceEndpoint||!1,this.tracker.adsTrackingFromClient&&(this.nrGoogleTrackingActive=!0),this.tracker.consentCookieLength=r(this.tracker.consentCookieLength,180),this.tracker.noConsentCookieEnabled=r(this.tracker.noConsentCookieEnabled,void 0),null!==(t=(e=this.tracker).blockOnReject)&&void 0!==t||(e.blockOnReject=!1)}setInterstitialSlot(e){this.adsTracker.setInterstitialSlot(e)}canWriteCookies(){return this.consentManager.getConsent("cookies")||Number.isFinite(this.tracker.noConsentCookieEnabled)}canTrack(){return this.getUserConsent(!1)||!this.tracker.blockOnNoConsent&&!this.tracker.blockOnReject||this.tracker.blockOnReject&&2===Xe(this.consentManager)}async syncUserVarsFromLocalStorage(){if(!this.permanentCookie.userId)return gn([]),void Ei([]);const e=await async function(){return await fn("uvars")}(),t=await fn("usegs");e&&(this.permanentCookie.userVars=e),t&&(this.permanentCookie.userSegments=t)}initializeCookies(){this.temporalCookie=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0;const n=null===t?"":t,i=Ye(e,"currentVisitStarted"),o=Ye(e,"lastBeat",i),s=Ye(e,"referrer"),a=n.includes(r),c=""===t,u=!a&&!c,l=new Date;l.setMinutes(l.getMinutes()-30);const d=o{this.initatedLocalStorageForUserVars=!0,this.markAsModified("permanent")})),this.markAsModified("temporal"),this.markAsModified("permanent")}updateLastBeat(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.temporalCookie.lastBeat=Ze(),this.markAsModified("temporal"),e&&this.saveCookies()}async initialize(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.engagementCalculator=new li,this.performanceStartTime=performance.now();const{url:t,rs:r,initialPageVars:n}=e,i=t?me(t):t;nn(),yn=[],wn=[],Oi.clear(),n&&Object.keys(n).length>0&&await Promise.all(Object.entries(n).map((async e=>{let[t,r]=e;return await this.setPageVar(t,r)}))),window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],void 0===this.nrGoogleTrackingActive&&(this.nrGoogleTrackingActive=!0,googletag.cmd.push((()=>{googletag.pubads().addEventListener("slotRenderEnded",(e=>{e.isEmpty||this.trackAdEvent("slotRenderEnded",e.slot)})),googletag.pubads().addEventListener("slotVisibilityChanged",(e=>{this.trackAdEvent("slotVisibilityChanged",e.slot)}))})));const o=!this.tick&&(e=>{var t,r;return"back forward cache"!==e&&"back_forward"===(null===(t=performance)||void 0===t||null===(r=t.getEntriesByType)||void 0===r||null===(r=r.call(t,"navigation"))||void 0===r||null===(r=r[0])||void 0===r?void 0:r.type)})(r)?"back forward":r;this.adsTracked=!1,this.pageId=null,this.isFirstPage=!0,this.recirculationSource=null,this.newAds=[],this.newAdUnitPaths=[],this.conversion=null,this.tick=0,this.isLastEvent=!1,this.endpoint=this.tracker.endpoint||ze,this.endpointDomain=ae(this.endpoint),this.currentPage=i||ce(this.tracker.pageType),this.startPageTime=Ze(),this.cmsId=(()=>{const e=document.querySelectorAll('meta[property="mrf:cms_id"]');if(e.length)return e[0].getAttribute("content")})(),this.pageId=Ie(),this.url=i||ce(this.tracker.pageType),this.canonical=i||De(this.tracker.pageType),this.updateTime=ni("updateTime",this.canonical),this.publishTime=ni("publishTime",this.canonical),this.setFirstVisit(),this.setPreviousVisit(),this.updateLastBeat(),this.setCurrentVisitStarted(),this.setTimesVisited(),this.setPagesViewed(),this.setLandingPage(i,this.publishTime),this.setRecirculationSource(o),this.saveCookies(),this.getRFV(Ci),this.webVitals=new Yr;const s=this.trackPage();return this.setRecirculationTracking(),(e=>{const t=e.trackConversion.bind(e);(e=>{window.addEventListener("blur",(()=>(e=>{On&&e(On)})(e)))})((e=>{var r;return e&&t(null==e||null===(r=e.dataset)||void 0===r?void 0:r.mrfConversion)})),document.readyState&&"complete"===document.readyState?Cn(t):document.addEventListener("DOMContentLoaded",(()=>{Cn(t)}))})(this),this.dispatcher.dispatch("pageInitialized",{url:this.canonical}),this.synchronizer.resolve("pageInitialized"),s}stopTracking(){nn(),this.isLastEvent=!0,this.collectAndTrackPage()}handleImmediateCallsToDataArray(){window[this.trackerName].data.oldPush=window[this.trackerName].data.push,window[this.trackerName].data.push=e=>{"getRFV"===e[0]?this.getRFV(e[1]):window[this.trackerName].data.oldPush(e)}}setIsNewUser(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.temporalCookie.isNewUser=e,this.markAsModified("temporal"),t&&this.saveCookies()}setFirstVisit(){let e=Ye(this.permanentCookie,"firstVisit");if(!1===e){e=Ze(),this.permanentCookie.firstVisit=e;const t=et("compass_uid");t?this.permanentCookie.userId=Ae(t)?t:((e,t)=>{const r=Te(`${e}`,"c0a334de-7622-4bd6-8bff-0b2b750cf2c6");return Te(`${t}`,r)})(this.accountId,t):(this.permanentCookie.userId=Ie(),this.setIsNewUser(!0,!1)),this.permanentCookie.userVars=[],this.markAsModified("permanent")}else this.permanentCookie.userVars=this.permanentCookie.userVars||[]}setPreviousVisit(){const e=Ye(this.temporalCookie,"previousVisit"),t=Ye(this.permanentCookie,"futurePreviousVisit");if(!1===e&&!1!==t)this.temporalCookie.previousVisit=t,this.permanentCookie.futurePreviousVisit=Ze(),this.markAsModified("temporal"),this.markAsModified("permanent");else if(!1===e&&!1===t){const e=Ze();this.temporalCookie.previousVisit=e,this.permanentCookie.futurePreviousVisit=e,this.markAsModified("temporal"),this.markAsModified("permanent")}}setCurrentVisitStarted(){let e=Ye(this.temporalCookie,"currentVisitStarted");!1===e?(e=Ze(),this.temporalCookie.currentVisitStarted=e,this.markAsModified("temporal"),this.temporalCookie.sessionId=Ie(),this.temporalCookie.sessionVars=[]):this.isFirstPage=!1}setTimesVisited(){let e=Ye(this.permanentCookie,"timesVisited");!1!==Ye(this.temporalCookie,"visitedInThisSession")&&!1!==e||(e=!1===e||isNaN(parseInt(e,10))?1:e+1,this.permanentCookie.timesVisited=e,this.temporalCookie.visitedInThisSession=!0,this.markAsModified("permanent"),this.markAsModified("temporal"))}setPagesViewed(){let e=Ye(this.temporalCookie,"pagesViewed");e=!1===e||isNaN(parseInt(e,10))?1:e+1,this.temporalCookie.pagesViewed=e,this.markAsModified("temporal")}setLandingPage(e,t){!1===Ye(this.temporalCookie,"landingPage")&&(this.temporalCookie.landingPage=e||ce(this.tracker.pageType),this.temporalCookie.referrer=le(this.tracker.pageType),this.temporalCookie.lpti=t,this.markAsModified("temporal"))}getLandingPage(){var e;return null===(e=this.temporalCookie)||void 0===e?void 0:e.landingPage}getLandingPagePublishTime(){var e;return null===(e=this.temporalCookie)||void 0===e?void 0:e.lpti}trackExperience(e){(e=>{Oi.add(e)})(e)}setRecirculationSource(e){if(e)this.recirculationSource=e;else{const e=(e=>{const t=((e,t)=>pe(e).search.substring(1).split("&").map((e=>e.split("="))).filter((e=>{let[t]=e;return"utm_cmp_rs"===t})).map((e=>{let[t,r]=e;return decodeURIComponent(r)})).shift())(e);return t||(e=>{const t=wt(e),r=St(),n=De();return r&&(r[t]||r[n])})(e)})(this.currentPage);e&&(this.recirculationSource=e,(e=>{const t=wt(e),r=St();r&&(delete r[t],mt("___m_rec",JSON.stringify(r)))})(this.currentPage),(e=>"refresh"===e)(e)&&(this.previousPage=this.canonical))}}setCookieOnCookieDomain(e,t,r,n){tt(e,t,r,n,this.cookieDomain)}getCookieExpiration(){var e;const t=this.consentManager.getConsent("cookies"),r=this.tracker.consentCookieLength,n=null!==(e=this.tracker.noConsentCookieEnabled)&&void 0!==e?e:0;if(!t&&0===n)return;const i=new Date(Date.now()),o=t?r:n;return i.setDate(i.getDate()+o),i.toGMTString()}saveTemporalCookie(){const e=this.tracker.isCookieSandboxed?"".concat("___nrbic","_").concat(this.accountId):"___nrbic";this.canWriteCookies()&&this.setCookieOnCookieDomain(e,JSON.stringify(this.temporalCookie),this.getCookieExpiration(),"/"),qe(e,this.temporalCookie)}savePermanentCookie(){const e=this.tracker.isCookieSandboxed?"".concat("___nrbi","_").concat(this.accountId):"___nrbi";if(this.canWriteCookies()){const t=this.getCookieExpiration(),{actualUserId:r}=this.userIdManager.getUserId();let n=Si({},this.permanentCookie);if(this.tracker.useLocalstorageForUserVars&&this.initatedLocalStorageForUserVars){const{userSegments:e,userVars:t}=n,r=L(n,ki);Ei(e),gn(t),n=r}this.setCookieOnCookieDomain(e,JSON.stringify(n),t,"/"),this.saveAmpPermanentCookie(r)}qe(e,this.permanentCookie)}saveAmpPermanentCookie(e){e&&this.setCookieOnCookieDomain("compass_uid",e,this.getCookieExpiration(),"/")}saveCookies(){let{force:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.temporalCookie&&(this.temporalCookieModified||e)&&this.saveTemporalCookie(),this.permanentCookie&&(this.permanentCookieModified||e)&&this.savePermanentCookie()}removeCookies(){const e=this.tracker.isCookieSandboxed?"_".concat(this.accountId):"";rt("".concat("___nrbic").concat(e),"/",this.cookieDomain),rt("".concat("___nrbi").concat(e),"/",this.cookieDomain)}markAsModified(e){this[e+"CookieModified"]=!0}getReferrer(){return this.previousPage?this.previousPage:le(this.tracker.pageType)}hasTrackedAds(){return!this.nrGoogleTrackingActive||this.adsTracked}getEngagedTime(){var e;const t=Ze()-this.startPageTime;return"fbia"===(null===(e=this.tracker)||void 0===e?void 0:e.pageType)?t:this.engagementCalculator.getTotalEngagedTime()}async track(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new FormData;return new Promise((t=>{const r=0===this.tick;this.api.post("/ingest.php",e,{contentType:"application/x-www-form-urlencoded",onSuccessCallback:r?e=>{var r;let n={};try{n=JSON.parse(e)}catch(e){}if(Ye(this.temporalCookie,"isNewUser")){const{actualUserId:e,userIdPromise:t}=this.getUserId();t.then((t=>this.setIsNewUser(t===e)))}var i;this.userIdManager.processIdentity(Si(Si({},n),(e=>{return t={uid:vi(e),sid:mi(e)},Object.entries(t).filter((e=>{let[t,r]=e;return void 0!==r})).reduce(((e,t)=>{let[r,n]=t;return e[r]=n,e}),{});var t})(this.url))),n.strategy&&(i=n.strategy,rn=i.reduce(((e,t)=>en(en({},e),{},{[t.tick]:t.delay})),{})),n.ads&&(this.adsDelay=n.ads),!this.tracker.stress&&null!==(r=n.mirror)&&void 0!==r&&r.active&&this.api.registerApi(ji(n.mirror.replicas)),t()}:void 0,skipResponse:this.isLastEvent,leaving:this.isLastEvent}),this.tick++,r||t()}))}setUserType(e){this.synchronizer.wait("pageInitialized"),this.permanentCookie.userType=e,this.markAsModified("permanent"),this.saveCookies()}getUserId(){return this.userIdManager.getUserId()}getSiteUserId(){return this.permanentCookie.siteUserId}getSessionReferrer(){return this.temporalCookie.referrer}getSessionId(){return this.temporalCookie.sessionId}getPageId(){return this.pageId}getRecirculationSource(){return this.recirculationSource}getFirstVisit(){return this.permanentCookie.firstVisit}getLastVisit(){return this.temporalCookie.previousVisit!==this.permanentCookie.futurePreviousVisit?this.temporalCookie.previousVisit:null}getPageType(){const e=this.tracker.pageType;return e&&ln(e)?ln(e):0}getUserType(){return function(e){if("number"==typeof e)return e;let t=parseInt(e||"",10);if(isNaN(t))switch(e){case"logged":t=2;break;case"paid":t=3;break;default:t=0}return t}(this.permanentCookie.userType)}getTotalPageviews(){return this.temporalCookie.pagesViewed}getSessionDuration(){return Ze()-this.temporalCookie.currentVisitStarted}getEndpointDomain(){return this.endpointDomain}getFallbackEndpointDomain(){return"https://icu.newsroom.bi"}getStagingEndpointDomain(){return Ge}getUserVars(){return this.permanentCookie.userVars}getSessionVars(){return this.temporalCookie.sessionVars}getPageVars(){return yn}getPageMetrics(){return wn}getUrl(){return this.url}getPublishTime(){return this.publishTime}setEcommerceData(e){this.ecommerceData=e}getCanonical(){return this.canonical}setSiteUserId(e){this.permanentCookie.siteUserId=e,this.markAsModified("permanent"),this.saveCookies()}setCookies(e){this.consentManager.setConsent("cookies",e)}getUserConsent(){return arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.consentManager.getConsent("cookies"):async function(e,t){return e.isInitiated()?e.getConsent(t):await Promise.race([new Promise((e=>setTimeout((()=>e(!0)),5e3))),new Promise((t=>e.onChange((()=>t(!0)))))]).then((async()=>e.getConsent(t)))}(this.consentManager,"cookies")}trackAdEvent(e,t){this.adsTracker.trackAdEvent(e,t)&&-1!==this.adsDelay&&(this.adsTracked=!0,nn(),on(this.adsDelay,(()=>this.trackPage())))}trackAdRendered(e,t){this.adsTracker.trackAdEventLegacy("slotRenderEnded",e,t)&&-1!==this.adsDelay&&(this.adsTracked=!0,nn(),on(this.adsDelay,(()=>this.trackPage())))}async setUserVar(e,t){await this.synchronizer.wait("pageInitialized"),vn(this.permanentCookie.userVars,e,t),this.markAsModified("permanent"),this.saveCookies()}async setSessionVar(e,t){await this.synchronizer.wait("pageInitialized"),vn(this.temporalCookie.sessionVars,e,t),this.markAsModified("temporal"),this.saveCookies()}async setPageVar(e,t){var r;bn(e,t),r=t,"closed"===e&&this.setUserVar("lastClosed",r)}async setPageMetric(e,t){t&&Number.isInteger(t)&&((e,t)=>{vn(wn,e,t)})(e,t)}async trackConversion(e,t){var r;const n=1e3*Math.round((new Date).getTime()/1e3);(null!==(r=this.trackedConversions[e])&&void 0!==r?r:0)!==n&&(await this.synchronizer.wait("pageInitialized"),this.trackedConversions[e]=n,this.conversion={conv:e,conv_i:t},(async e=>{const t=await fn(jn)||{},r=t[e]||0;t[e]=r+1,await mn(jn,t)})(e),nn(),await this.trackPage())}listenForScrollDepth(){const e="requestAnimationFrame"in window?window.requestAnimationFrame:e=>e(),t=yi((()=>e((()=>xe()))),1e3);window.addEventListener("scroll",t,{passive:!0})}async _trackRecirculationEvent(e){var t,r;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!this.canTrack())return;const i=await this.getTrackingCommonData(),o=n.map((e=>e.e)).some((e=>e.some((e=>"string"!=typeof e&&!!e.ac2)))),s={t:e,m:n.map((e=>{var t,r;return Si(Si({},e),{},{e:(null===(t=(r=e.e).map)||void 0===t?void 0:t.call(r,ve))||e.e})})),ac:i.ac,url:i.url,c:i.c,ut:i.ut,fv:i.fv,lv:i.lv,r:i.r,lp:i.lp,pageType:0,sui:i.sui,u:i.u,uc:i.uc,cc:i.cc,n:Ze(),cms_id:i.cms_id};this.tracker.pageType&&"fbia"===this.tracker.pageType&&(s.pageType=2);const a=pt(this.accountId);if(a){const{rfv:e,v:t,f:r,r:n}=a;s.rfv=e,s.rfv_r=n,s.rfv_f=r,s.rfv_v=t}return this.api.post("".concat("/recirculation/recirculation.php").concat(o?"?c=1":""),(e=>Si(Si({},e),{},{m:e.m.map((e=>{var t,r;return Si(Si({},e),{},{e:(null===(t=(r=e.e).map)||void 0===t?void 0:t.call(r,pr))||e.e})}))}))(s)),null===(t=this.events)||void 0===t||null===(r=t.emitRecirculation)||void 0===r||r.call(t,s),s}async trackRecirculationEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return await this._trackRecirculationEvent(e,this.moduleTracker.process(e,t))}getBasicConfig(){const{actualUserId:e}=this.getUserId();return Si({ac:this.accountId,co:this.cookieDomain,t:this.temporalCookie.currentVisitStarted,r:this.getSessionReferrer(),url:this.url,c:this.canonical,pp:this.getReferrer(),lp:this.getLandingPage(),p:this.pageId,u:e,s:this.getSessionId(),v:.2,cms_id:this.cmsId},this.getLandingPagePublishTime()?{lpti:this.getLandingPagePublishTime()}:{})}async getTrackingCommonData(){const{userIdPromise:e}=this.getUserId();return Si(Si({},this.getBasicConfig()),{},{u:await e,ua:window.navigator.userAgent,rs:this.getRecirculationSource(),sui:this.getSiteUserId()||"",ut:this.getUserType(),fv:this.getFirstVisit(),lv:this.getLastVisit(),uvar:this.getUserVars(),svar:this.getSessionVars(),pvar:this.getPageVars(),pm:this.getPageMetrics(),uc:await this.getUserConsent(),useg:this.getUserSegments(),cc:Xe(this.consentManager)})}async trackPageInternal(){this.tick>0&&(this.performanceStartTime=performance.now());const e=new FormData,{pageNav:t,jsTime:r}=(e=>{if(void 0!==window.performance&&"function"==typeof window.performance.getEntriesByType){const t=window.performance.getEntriesByType("navigation")[0];return at=at||window.performance.now()-e,at>0?{pageNav:t,jsTime:at}:{}}return{}})(this.performanceStartTime);null!=r&&(e.append("pt",r),void 0!==t&&void 0!==t.domainLookupEnd&&(e.append("pdns",t.domainLookupEnd-t.domainLookupStart),e.append("pcon",t.connectEnd-t.connectStart),e.append("pfet",t.responseEnd-t.fetchStart),e.append("pnet",t.responseEnd-t.requestStart),e.append("pttf",t.responseStart-t.requestStart),e.append("pint",t.domInteractive),e.append("pdcl",t.domContentLoadedEventEnd),e.append("pdclf",t.duration))),e.append("wv",this.webVitals.hasWebVitals()),e.append("lcp",this.webVitals.lcp),e.append("cls",this.webVitals.cls),e.append("fcp",this.webVitals.fcp),e.append("tbt",this.webVitals.tbt),e.append("inp",this.webVitals.inp),this.webVitals.lcpOffender&&e.append("lcp_o",this.webVitals.lcpOffender),this.webVitals.clsOffender&&(e.append("cls_o",this.webVitals.clsOffender),e.append("cls_o_s",this.webVitals.clsOffenderStatus)),this.webVitals.inpOffender&&(e.append("inp_o",this.webVitals.inpOffender),e.append("inp_o_s",this.webVitals.inpOffenderStatus),this.webVitals.inpOffenderScript&&e.append("inp_o_src",this.webVitals.inpOffenderScript),this.webVitals.inpOffenderScriptFn&&e.append("inp_o_fn",this.webVitals.inpOffenderScriptFn),this.webVitals.inpOffenderScriptInvoke&&e.append("inp_o_in",this.webVitals.inpOffenderScriptInvoke)),Object.entries(this.getBasicConfig()).forEach((t=>{let[r,n]=t;null!=n&&e.append(r,n)}));const n=this.getUserSegments();null!=n&&n.length&&e.append("useg",JSON.stringify(n)),e.append("n",Ze());const i=Ze()-this.startPageTime;e.append("et",this.getEngagedTime()),e.append("l",i),e.append("ps",this.startPageTime),e.append("ut",this.getUserType()),e.append("sui",this.getSiteUserId()||""),e.append("sc",xe(0===this.tick)),e.append("fv",this.getFirstVisit()),e.append("lv",this.getLastVisit()),e.append("uvar",JSON.stringify(this.getUserVars())),e.append("svar",JSON.stringify(this.getSessionVars())),e.append("pvar",JSON.stringify(this.getPageVars())),e.append("pm",JSON.stringify(this.getPageMetrics())),e.append("nu","".concat(+Ye(this.temporalCookie,"isNewUser"))),e.append("exp",(()=>{try{return JSON.stringify([...Oi.values()])}catch(e){return"[]"}})()),this.isLastEvent&&e.append("le","1"),this.ecommerceData&&e.append("stock",this.ecommerceData.stock),(this.publishTime||this.updateTime)&&(e.append("uti",this.updateTime),e.append("pti",this.publishTime)),e.append("ads",this.adsTracker.getAds());const o=this.adsTracker.getAdUnits();o.length>0&&e.append("aups",o);const{conv:s,conv_i:a}=this.conversion||{};if(s&&(e.append("conv",s),a&&e.append("conv_i",a),this.conversion=null),this.recirculationSource&&e.append("rs",this.getRecirculationSource()),e.append("uc",this.isLastEvent?this.getUserConsent(!1):await this.getUserConsent()),e.append("cc",Xe(this.consentManager)),e.append("a",this.tick),this.consentManager.getConsent("personalization")){const t=pt(this.accountId);if(t){const{rfv:r,v:n,r:i,f:o}=t;e.append("rfv",r),e.append("rfv_v",n),e.append("rfv_r",i),e.append("rfv_f",o)}}return this.tracker.pageType&&e.append("pageType",ln(this.tracker.pageType)),await this.track(e),e}async collectAndTrackPage(){for(;window[this.trackerName].data.length>0;){const e=window[this.trackerName].data.shift();"userType"===e[0]?this.setUserType(e[1]):"userId"===e[0]?this.setSiteUserId(e[1]):"setCookies"===e[0]?this.setCookies(e[1]):"adRendered"===e[0]?this.adsTracker.trackAdEventLegacy("slotRenderEnded",e[1],e[2]):"userVar"===e[0]?this.setUserVar(e[1],e[2]):"sessionVar"===e[0]?this.setSessionVar(e[1],e[2]):"pageVar"===e[0]?this.setPageVar(e[1],e[2]):"pageMetric"===e[0]?this.setPageMetric(e[1],e[2]):"trackConversion"===e[0]?this.trackConversion(e[1],e[2]):"getRFV"===e[0]&&this.getRFV(e[1])}return await this.trackPageInternal()}async trackPage(){if(!this.canTrack())return;this.isLastEvent=!1;let e=null;return 0!==this.tick&&"hidden"===document.visibilityState||(e=await this.collectAndTrackPage()),((e,t)=>{const r=Object.keys(rn).map((e=>parseInt(e,10))).sort(((e,t)=>e-t)).reduce(((t,r)=>null===t&&r>e?r:t),null);r&&tn.callOnTimer(t,rn[r])})(this.tick,(()=>this.trackPage())),e}getRFV(e){if(!this.consentManager.getConsent("personalization"))return e?e(ut):ut;const{userIdPromise:t,actualUserId:r}=this.getUserId(),n=Ye(this.temporalCookie,"isNewUser");return e?t.then((t=>async function(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=pt(e);return o?(r(o),o):function(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return new Promise((o=>{const s=dt(e,t,n,i);H(ct,s,{onSuccessCallback:t=>{const n=lt(JSON.parse(t),e);r(n),o(n)},contentType:"application/x-www-form-urlencoded"})}))}(e,t,r,n,i)}(this.accountId,t,e,this.getSiteUserId(),n))):(console.error("Deprecated: please pass a callback to the function getRFV"),function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return pt(e)||function(e,t,r){const n=dt(e,t,r,arguments.length>3&&void 0!==arguments[3]&&arguments[3]),i=H(ct,n,{sync:!0,contentType:"application/x-www-form-urlencoded"});return lt(JSON.parse(i),e)}(e,t,r,n)}(this.accountId,r,this.getSiteUserId(),n))}async trackNewPage(e){var t;if(null!==(t=history.state)&&void 0!==t&&t.mrfSkip)return;const r=((e,t)=>e?"string"==typeof e?{url:e}:e:{})(e);let{initialPageVars:n}=r;return this.tick>0?(this.isLastEvent=!0,await this.trackPageInternal(),this.previousPage=""+this.canonical):n=Si(Si({},Object.fromEntries(this.getPageVars())),n),se={},await this.initialize(Si(Si({},r),{},{initialPageVars:n}))}on(e,t){this.dispatcher.on(e,t)}setupConsent(e){const t=()=>{this.saveAmpPermanentCookie(et("compass_uid"))};this.consentManager.onChange((()=>{!this.tracker.blockOnReject||this.consentManager.getConsent("cookies")?(this.canWriteCookies()?this.saveCookies({force:!0}):this.removeCookies(),t()):this.stopTracking()}).bind(this)),t();const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{useCookies:t}=e;if(Je(t))return t;const r=Fe("__nrCookieConsent");return Je(r)?r:null}(e);null!==r&&this.consentManager.setConsent("cookies",r)}async getPaywallScore(){const{actualUserId:e}=this.userIdManager.getUserId();return this.consentManager.getConsent("personalization")?(async e=>{const t="".concat(it,"?").concat(st(e)),r=await window.fetch(t);if(!r.ok)throw new Error(r.status);const{score:n}=await r.json();return n})({accountId:this.accountId,userId:e,siteUserId:this.getSiteUserId()}):nt}async predict(){const{actualUserId:e}=this.userIdManager.getUserId(),t=await(async e=>{const t="".concat(ot,"?").concat(st(e)),r=await fetch(t);if(!r.ok)throw new Error(r.status);return await r.json()})({accountId:this.accountId,userId:e,siteUserId:this.getSiteUserId(),totalPageviews:this.getTotalPageviews(),sessionDuration:this.getSessionDuration()});return t.probability&&bn("predict:probability",t.probability),t}async setRecirculationTracking(){return this.setRecirculationTrackingInternal(!0)}async setRecirculationTrackingInternal(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=Promise.race([this.synchronizer.wait("experimentation").then((e=>e?this.synchronizer.wait("headline"):Promise.resolve())),this.synchronizer.wait("experimentationFailed"),this.synchronizer.wait("experimentationDisabled").then((()=>Promise.resolve())),new Promise((e=>setTimeout(e,3e3)))]),[{layouts:r}]=await Promise.all([this.tracker.rm,t]);await async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{};(()=>{if(window.performance){if(window.performance.navigation&&1===window.performance.navigation.type)return!0;if("function"==typeof window.performance.getEntriesByType)return window.performance.getEntriesByType("navigation").map((e=>e.type)).includes("reload")}return!1})()&&Ct("refresh",e),await ur(),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{observeDomChanges:n=!0,layouts:i=[]}=t,o=n?ir:nr;Ot().forEach((t=>t.shadowRoot&&o(e,t.shadowRoot,{parentNode:t,layouts:i},r))),o(e,document.body,{layouts:i},r)}(t,r,n)}(ce(this.tracker.pageType),((e,t)=>{(e=>{"hidden"!==document.visibilityState?e():document.addEventListener("visibilitychange",(()=>{"hidden"!==document.visibilityState&&e()}),{once:!0})})((()=>this.trackRecirculationEvent(e,t.map((e=>{let{module:t,links:r,position:n}=e;return{n:t,e:r,p:n}})))))}),{observeDomChanges:e,layouts:r},(()=>this.dispatcher.dispatch("recirculationChanged"))),this.synchronizer.resolve("recirculationTracking")}setRecirculationConfig(){let{modules:e=[],layouts:t=[],blacklist:r=[],redirectionLinks:n=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.tracker.rm.set((i=>{let{modules:o=[],layouts:s=[],blacklist:a=[],redirectionLinks:c=[]}=i;const u={blacklist:gi([...a,...r]),redirectionLinks:gi([...c,...n]),modules:gi([...o,...e]),layouts:gi([...s,...t])};return this.dispatcher.dispatch("recirculationConfigChanged",Si({},u)),u})),async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};e.modules.length&&(await ur(),dr(e),oe((()=>{dr(e)&&t()})),t())}({modules:e,blacklist:r,redirectionLinks:n},(()=>{this.setRecirculationTrackingInternal(!1),this.dispatcher.dispatch("recirculationChanged")}))}getRecirculationConfig(){return this.tracker.rm}setRecirculationModules(e){this.setRecirculationConfig({modules:e})}setConversionButtons(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e&&e.length&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;di(e,t),oe((()=>{di(e,t)}))}(e,this.trackConversion.bind(this))}addUserSegment(e){const t=Ye(this.permanentCookie,"userSegments")||[];this.permanentCookie.userSegments=[...t,e],this.markAsModified("permanent"),this.saveCookies()}setUserSegments(e){this.permanentCookie.userSegments="string"==typeof e?e.split(","):e,this.markAsModified("permanent"),this.saveCookies()}removeUserSegment(e){this.permanentCookie.userSegments=this.permanentCookie.userSegments?this.permanentCookie.userSegments.filter((t=>t!==e)):[],this.markAsModified("permanent"),this.saveCookies()}clearUserSegments(){this.permanentCookie.userSegments=[],this.markAsModified("permanent"),this.saveCookies()}getUserSegments(){var e;return(null===(e=this.permanentCookie)||void 0===e?void 0:e.userSegments)||[]}getContext(e){var t;return e?null===(t=this.contextVariables)||void 0===t?void 0:t[e]:this.contextVariables}setContext(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.contextVariables=e}trackPaymentMethod(){(e=>{try{const r=e.getSessionVars();if("hub.marfeel.com"===document.location.host)return;if(window.addEventListener("message",(t=>{if("https://experiences.mrf.io"===t.origin){var r,n,i;if(null!==(r=t.data)&&void 0!==r&&r.activePayment)e.setSessionVar("activePaymentMethod",t.data.activePayment);else if(null!==(n=t.data)&&void 0!==n&&n.retryData&&window.PaymentRequest){var o;const{paymentMethod:r,paymentDetails:n}=null===(o=t.data)||void 0===o?void 0:o.retryData;new PaymentRequest([r],n,{}).canMakePayment().then((t=>{t&&e.setSessionVar("activePaymentMethod","applePay")})).catch((()=>{}))}wi=!1;const s=null===(i=document.body)||void 0===i?void 0:i.querySelector("iframe#".concat("dw-mrf"));s&&document.body.removeChild(s)}})),!wi||!r.activePaymentMethod){var t;const e=document.createElement("iframe");e.id="dw-mrf",e.setAttribute("allow","payment"),e.setAttribute("style","display:none;"),e.src=bi,null===(t=document.body)||void 0===t||t.appendChild(e),wi=!0}}catch(e){}})(this)}}function Ai(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ii(e){for(var t=1;t{var t,r;null===(t=window)||void 0===t||null===(r=t.top)||void 0===r||r.marfeel.cmd.push(["compass",function(){var t=n((function*(t){return e(yield t.getTrackingCommonData())}));return function(e){return t.apply(this,arguments)}}()])}))}))()}}function Ni(){return(Ni=n((function*(){return new Promise((e=>{try{document.prerendering?document.addEventListener("prerenderingchange",(()=>{window.marfeel.cmd.push(["compass",function(e){e.setPageVar("mrfprerendered_tracked","true")}]),e()})):e()}catch(t){e()}}))}))).apply(this,arguments)}function _i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ri(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0],t=new URL(window.location.href),r=!!t.hash.includes(c);if(r&&e)try{N(function(e,t){var r=new URL(e.href),n=e.hash.split("#").filter((e=>""!==e&&e!==t&&!e.startsWith("".concat(t,"="))));return r.hash=n.length?"#".concat(n.join("#")):"",r.toString()}(t,c))}catch(e){}return r}))),R(Li),R("activate-overlay"),(s="".concat("mrfHudStorage","-").concat(e.accountId),a="".concat("compass-overlay","_").concat(e.accountId),n((function*(){try{var e=window.localStorage.getItem(s);if(e)return JSON.parse(e).entries[a].active}catch(e){}return!1}))),(o=e.accountId,n((function*(){return new Promise((e=>{window.addEventListener("message",(t=>{var{data:r}=t;((e,t)=>{return!(998===(r=e)||"998"===r||window.self!==window.top||"compass_chrome_extension"!==(null==t?void 0:t.origin)||"extension:load_overlay"!==(null==t?void 0:t.type));var r})(o,r)&&e(!0)}))}))}))))}}y("compass",["consent","synchronizer","events"],function(){var e=n((function*(e,t){var[r,n]=t;yield function(){return Ni.apply(this,arguments)}(),yield A(e,r,n,1e3);try{var i;if(window.top!==window.self&&(null===(i=window.top)||void 0===i?void 0:i.marfeel.config.accountId)===e.accountId)return Promise.resolve(Di)}catch(e){}return Promise.resolve(xi)}));return function(t,r){return e.apply(this,arguments)}}());var Mi=s(181),Ui=s.n(Mi),Vi=function(e){return e.INLINE="inline",e.FLOWCARDS="flowcards",e.COMPASS="compass",e.RECIRCULATION="recirculation",e.CONVERSIONS="conversions",e.CONTENT="content",e.AD_MANAGER="adManager",e.EXPERIMENTS="experiments",e.EXPERIMENTATION="experimentation",e.GOOGLE_OPTIMIZE="googleOptimize",e.PIANO="piano",e.GOAL_TRACKING="goalTracking",e.LOADER="loader",e.ECOMMERCE="ecommerce",e.MULTIMEDIA="multimedia",e.GENERIC_GOAL_TRACKING="genericGoalTracking",e.SITE_CONTEXT_SYNCHRONIZER="siteContextSynchronizer",e.SOCIAL_ACQUISITION="socialAcquisition",e.CONTEXT_EXPOSITION="contextExposition",e.APP_BANNER="appBanner",e.MARFEEL_OPTIMIZER="marfeelOptimizer",e.AFFILIATION_ENHANCER="affiliationEnhancer",e.PAGE_METRICS_TRACKING="pageMetricsTracking",e}({}),Fi=function(){var e=n((function*(e){var t,r=e.canonical||(null===(t=e.location)||void 0===t?void 0:t.href)||"";if(!r)return"";var n=encodeURIComponent(r);return"url=".concat(n)}));return function(t){return e.apply(this,arguments)}}(),qi=function(){var e=n((function*(e){var t=e.userId;return t&&""!==t?"clid=".concat(t):""}));return function(t){return e.apply(this,arguments)}}();function Bi(){return new Promise((e=>{var t,r;(window.marfeel=null!==(t=window.marfeel)&&void 0!==t?t:{},window.marfeel.cmd=null!==(r=window.marfeel.cmd)&&void 0!==r?r:[],window.marfeel.cmd).push(["consent",t=>{e(t)}])}))}function Gi(){return zi.apply(this,arguments)}function zi(){return(zi=n((function*(){return(yield Bi()).getConsent("cookies")?localStorage:sessionStorage}))).apply(this,arguments)}function Ki(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e;try{var n=e.getItem(t);return n?JSON.parse(r(n)):null}catch(e){}return null}function Hi(e,t,r){var{isPatch:n=!1,encoder:i=(e=>e),decoder:o=(e=>e)}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{var s=n&&Ki(e,t,o)||{};return e.setItem(t,i(JSON.stringify(Ui().withOptions({mergeArrays:!1},s,r)))),!0}catch(e){}return!1}function Wi(){return Wi=n((function*(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return Ki(yield Gi(),e,t)})),Wi.apply(this,arguments)}function Ji(){return Ji=n((function*(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Hi(yield Gi(),e,t,r)})),Ji.apply(this,arguments)}function Xi(){return Xi=n((function*(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=yield Bi(),n=()=>r.getConsent("cookies");r.onReady((()=>{var i=n();r.onChange((()=>{if(i!==(i=n())){var r=i?sessionStorage:localStorage,o=i?localStorage:sessionStorage,s=Ki(r,e,t.decoder);s&&Hi(o,e,s,t)}}))}))})),Xi.apply(this,arguments)}var $i="marfeel-sdk-store",Qi=btoa,Yi=atob;function Zi(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.update=Date.now(),function(e,t){return Ji.apply(this,arguments)}($i,e,{encoder:Qi,decoder:Yi,isPatch:t})}function eo(){return eo=n((function*(){var e,t=yield function(e){return Wi.apply(this,arguments)}($i,Yi);return t||(Zi(e={creation:Date.now(),update:Date.now(),entries:{}}),e)})),eo.apply(this,arguments)}function to(e){return ro.apply(this,arguments)}function ro(){return ro=n((function*(e){var t=yield function(){return eo.apply(this,arguments)}();return t.entries[e]})),ro.apply(this,arguments)}function no(e,t){return io.apply(this,arguments)}function io(){return(io=n((function*(e,t){return Zi({entries:{[e]:t}},!0)}))).apply(this,arguments)}var oo=function(e){return e["2G"]="2g",e["3G"]="3g",e["4G"]="4g",e}(oo||{}),so={[oo["2G"]]:70,[oo["3G"]]:750,[oo["4G"]]:Number.MAX_VALUE},ao="mrf-connection-speed",co=[1059,1659,2223,2224,2225,2335,2336,2337,2338,2339,2340],uo=function(){var e=n((function*(e){if(!window.performance||!co.includes(Number(e.siteId)||0))return"";var t=[...window.performance.getEntriesByType("navigation"),...window.performance.getEntriesByType("resource")].filter((e=>e.transferSize>1e4));if(!t.length){var{connection_kbps:r,connection_type:n}=yield to(ao);return r&&n?"kbps=".concat(r,"&ctyp=").concat(n):""}var i=t.reduce(((e,t)=>t.encodedBodySize>e.encodedBodySize?t:e)),o=i.encodedBodySize/1e3,s=i.responseEnd-i.responseStart,a=Math.round(8*o/(s/1e3)),c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e"".concat(encodeURIComponent(t),",").concat(e[t])));return"".concat("cnv","=").concat(t.join(","))}));return function(){return e.apply(this,arguments)}}(),po=function(){var e,t=arguments.length>1?arguments[1]:void 0;return null===(e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(t,"").replace("true","").split("&").find((e=>e.startsWith("mrfexperiences=")||e.startsWith("mrfexp=")||e.startsWith("mrfdebug="))))||void 0===e?void 0:e.split("=")[1]},ho=e=>{if(e){var t=po(e.hash,"#")||po(e.search,"?");if(t)return t}return null},fo=function(){var e=n((function*(e){var t=e.experienceId;return t&&""!==t?"id=".concat(t):""}));return function(t){return e.apply(this,arguments)}}();function mo(e,t){if("provider"!==e)return t}var vo=function(){var e=n((function*(e){var t,r;if(null===(t=e.externalExperiences)||void 0===t||null===(r=t[Vi.FLOWCARDS])||void 0===r||!r.length)return"";var n=e.externalExperiences[Vi.FLOWCARDS].map((e=>{var t=e;return"object"==typeof e.renderProps&&(t.renderProps=JSON.stringify(e.renderProps)),t})),i=encodeURIComponent(JSON.stringify(n,mo));return"dflwc=".concat(i)}));return function(t){return e.apply(this,arguments)}}(),go=function(){var e=n((function*(e){return isNaN(e.firstVisit)?"":"fvst=".concat(e.firstVisit)}));return function(t){return e.apply(this,arguments)}}(),yo="mrfgeo=",bo=function(){var e=n((function*(e){return"geo=".concat((e=>{if(e){var t=e.search.replace("?","").split("&").find((e=>e.startsWith(yo)));if(t)return t.replace(yo,"")}return null})(e.location)||"__INJECT_GEO__")}));return function(t){return e.apply(this,arguments)}}(),wo=function(){var e=n((function*(e){var t=/hubspotutk=(.+?)(?:;|$)/.exec(e.cookies||"");return t?"hutk=".concat(t[1]):""}));return function(t){return e.apply(this,arguments)}}(),Oo=function(){var e=n((function*(e){var t=e.pageTechnology?e.pageTechnology:0;return"ptch=".concat(t)}));return function(t){return e.apply(this,arguments)}}(),Eo=function(){var e=n((function*(e){return isNaN(e.totalPageViews)?"":"pgv=".concat(e.totalPageViews)}));return function(t){return e.apply(this,arguments)}}(),ko=function(){var e=n((function*(e){if(!e.referrer)return"";var t=encodeURIComponent(e.referrer);return"ppg=".concat(t)}));return function(t){return e.apply(this,arguments)}}();function Po(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function So(e){for(var t=1;t{if(!e)return[];var t=Date.now(),r=t+6048e5;return e.map((e=>(e=>"object"==typeof e)(e)?e:{id:e,expires:r})).sort(((e,t)=>{var{expires:r}=e,{expires:n}=t;return r-n})).filter((e=>{var{expires:r}=e;return r>=t}))},To=(e,t)=>{if(!t)return e;var r=Date.now()+2592e6,n=[...e.filter((e=>{var{id:r}=e;return r!==t})),{id:t,expires:r}];return n.length>100?n.slice(1):n};function Ao(){return Io.apply(this,arguments)}function Io(){return(Io=n((function*(){return(yield to(Co))||{sites:{}}}))).apply(this,arguments)}function Do(){return(Do=n((function*(e){var t,r=yield Ao();return jo(null===(t=r.sites[e])||void 0===t?void 0:t.readEditorialIds).map((e=>{var{id:t}=e;return t}))}))).apply(this,arguments)}function No(e,t){return _o.apply(this,arguments)}function _o(){return(_o=n((function*(e,t){var r,n=yield Ao(),i=So(So({},n),{},{sites:So(So({},n.sites),{},{[e]:So(So({},n.sites[e]),{},{readEditorialIds:To(jo(null===(r=n.sites[e])||void 0===r?void 0:r.readEditorialIds),t.editorialId)})})});return no(Co,i)}))).apply(this,arguments)}var Ro=function(){var e=n((function*(e,t){var r={handlerName:"content",handled:!1};return t.config.accountId&&e.content&&(r.handled=yield No(t.config.accountId,e.content)),Promise.resolve(r)}));return function(t,r){return e.apply(this,arguments)}}(),Lo=function(){var e=n((function*(e){var{siteId:t,personalizedContent:r}=e;if(void 0!==t&&r){var n=(e=>e.sort(((e,t)=>e-t)).map(((e,t,r)=>{var n=e;return t>0&&(n-=r[t-1]),n})))(yield function(e){return Do.apply(this,arguments)}(t));if(n.length>0)return"red=".concat(encodeURIComponent(n.join(",")))}return""}));return function(t){return e.apply(this,arguments)}}(),xo=function(){var e=n((function*(e){if(!e.recirculationSource)return"";var t=encodeURIComponent(e.recirculationSource);return"rsrc=".concat(t)}));return function(t){return e.apply(this,arguments)}}(),Mo=function(){var e=n((function*(e){if(!e.sessionReferrer)return"";var t=new URL(e.sessionReferrer);t.hash="",t.search="";var r=encodeURIComponent(t.toString());return"ref=".concat(r)}));return function(t){return e.apply(this,arguments)}}(),Uo=function(){var e=n((function*(e){return isNaN(e.sessionDuration)?"":"sdu=".concat(e.sessionDuration)}));return function(t){return e.apply(this,arguments)}}(),Vo=function(){var e=n((function*(e){return isNaN(e.siteId)?"":"sid=".concat(e.siteId)}));return function(t){return e.apply(this,arguments)}}();function Fo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qo(e){for(var t=1;te.reduce(((e,t)=>zo(zo({},e),{},{[t.origin]:t.goal})),{}),Ho="mrfExperiment_",Wo=e=>e.startsWith(Ho);var Jo=s(539);function Xo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $o(e){for(var t=1;t{var r;if("object"==typeof e){r=e;for(var n=t.split("."),i=0;i{if(void 0===t)return!0;if(void 0!==e&&"*"===t)return!0;if(e===t)return!0;if(Array.isArray(t)){var r=Array.from(e);if(r.length>=t.length)return t.map(((e,t)=>Yo(r[t],e))).every(Boolean)}return"object"==typeof e&&"object"==typeof t&&Object.entries(t).map((t=>{var[r,n]=t;return Yo(e[r],n)})).every(Boolean)},Zo=(e,t)=>{switch(t.type){case"composite":return Array.isArray(t.value)?t.value.map((t=>Zo(e,t))):Object.entries(t.value).reduce(((t,r)=>{var[n,i]=r;return $o($o({},t),{},{[n]:Zo(e,i)})}),{});case"lookup":return t.value?Qo(e,t.value):e;default:return t.value}},es=e=>{var t,r,n=e.hasTrackedAds();return e.getEngagedTime()>=5&&(n||null===(t=window.googletag)||void 0===t||null===(r=t.cmd)||void 0===r||r.push((()=>{e.setPageVar("mrf::optimized","true"),window.googletag.pubads().refresh()})),!0)};function ts(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function rs(e){for(var t=1;t1?arguments[1]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(((t,r)=>{var[n,i]=r;return rs(rs({},t),{},{["".concat(e,"::").concat(n)]:i})}),{})},is=function(){var e=n((function*(e){var t,r,n,i=Object.assign({},e.targeting,(r=null==(t=e.compassVars)?void 0:t.user.filter((e=>{var[t]=e;return!Wo(t)})),n=null==t?void 0:t.user.filter((e=>{var[t]=e;return Wo(t)})).map((e=>{var[t,r]=e;return[t.replace(Ho,""),r]})),rs(rs(rs(rs({},ns(null==t?void 0:t.page,"pageVar")),ns(null==t?void 0:t.session,"sessionVar")),ns(r,"userVar")),ns(n,"experiment"))));return 0===Object.keys(i).length?"":Object.keys(i).filter((e=>void 0!==i[e])).map((e=>[e,encodeURIComponent(i[e])].join("="))).join("&")}));return function(t){return e.apply(this,arguments)}}(),os=0,ss=1,as=7,cs=4,us=7,ls=864e5;function ds(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()+cs-(t.getUTCDay()||us))),n=new Date(Date.UTC(r.getFullYear(),os,ss));return{week:Math.ceil(((r.getTime()-n.getTime())/ls+1)/as),year:r.getUTCFullYear()}}var ps=function(e){return e.impression="impression",e.close="close",e}({});function hs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function fs(e){for(var t=1;t{var r=fs({total:{impression:0,close:0}},e||{}),n="w".concat(gs.week);return r[n]=r[n]||{impression:0,close:0},r[n][t]++,r},ws=(e,t)=>{var r=fs({total:{impression:0,close:0}},e||{});return r.total[t]++,r[vs.getMonth()]=((e,t)=>{var r=fs({total:{impression:0,close:0}},e||{}),n=vs.getDate();return r[n]=r[n]||{impression:0,close:0},r[n][t]++,r.total[t]++,r})(r[vs.getMonth()],t),r};function Os(){return void 0===ms&&(vs=new Date(Date.now()),gs=ds(vs),ms=to(ys).then((e=>e||{}))),ms}var Es=function(e){return e.lifetime="l",e.month="m",e.week="w",e.day="d",e}(Es||{}),ks=function(e){return e.last="ls",e}(ks||{}),Ps=new Set([...Object.values(Es),ks.last]),Ss=e=>{if(!e)return 0;var t=Date.now()-e;return Math.floor(t/1e3)},Cs=(e,t,r,n)=>{var{impression:i,close:o}=n;i>0&&e.has(r)&&t.push(r,String(i)),o>0&&e.has("".concat("c").concat(r))&&t.push("".concat("c").concat(r),String(o))},js=function(){var e=n((function*(e){return Os().then((t=>{var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=new Map(Object.entries(e).map((e=>{var[t,r]=e;return[t,new Set(r)]})));return Object.entries(t).forEach((e=>{var t,[n,i]=e;!r.has(n)&&function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)>Date.now()-36e5}(null==i||null===(t=i.last)||void 0===t?void 0:t.impression)&&r.set(n,Ps)})),r}(e.userExperiences,t),n=Object.entries(t).reduce(((e,t)=>{var[n,i]=t,o=[],s=r.get(n);if(!i||0===i.total.impression||!s)return e;!function(e,t,r){Cs(e,t,Es.lifetime,r.total)}(s,o,i);var a=new Date(Date.now()),c=ds(a),u=i[a.getFullYear()],l=i[c.year],d=null==u?void 0:u[a.getMonth()],p=null==d?void 0:d[a.getDate()];!function(e,t,r){r&&Cs(e,t,Es.month,r.total)}(s,o,d),function(e,t,r,n){if(r){var i=r["w".concat(n.week)];i&&Cs(e,t,Es.week,i)}}(s,o,l,c),function(e,t,r){r&&Cs(e,t,Es.day,r)}(s,o,p),((e,t,r)=>{r.last&&Cs(e,t,ks.last,{impression:Ss(r.last.impression),close:Ss(r.last.close)})})(s,o,i);var h=o.join("|");return h.length>0?e.concat(n,h):e}),[]);return n.length>0?"uexp=".concat(n.join(",")):""}))}));return function(t){return e.apply(this,arguments)}}(),Ts=function(){var e=n((function*(e){return Array.isArray(e.userSegments)?"useg=".concat(e.userSegments.join(",")):""}));return function(t){return e.apply(this,arguments)}}(),As=function(){var e=n((function*(e){return isNaN(e.userType)?"":"utyp=".concat(e.userType)}));return function(t){return e.apply(this,arguments)}}(),Is=e=>{try{return decodeURIComponent(e),!0}catch(e){return!1}},Ds=function(e){return e.USQP="usqp",e.CAMPAIGN="utm_campaign",e.CONTENT="utm_content",e.MEDIUM="utm_medium",e.SOURCE="utm_source",e}(Ds||{}),Ns={[Ds.CAMPAIGN]:"u_cpg",[Ds.CONTENT]:"u_cnt",[Ds.MEDIUM]:"u_mdm",[Ds.SOURCE]:"u_src"},_s={canonical_url:"url",client_id:"clid",connection_speed:"cspd",conversions:"cnv",dynamic_flowcards:"dflwc",experience_id:"id",first_visit:"fvst",hubspot_utk:"hutk",page_technology:"ptch",pageviews:"pgv",previous_page:"ppg",recirculation_source:"rsrc",referrer:"ref",session_duration:"sdu",site_id:"sid",targeting:"trg",user_experiences:"uexp",user_type:"utyp",visitor_frequency:"vfrq"},Rs={url:Fi,clid:qi,cspd:uo,cnv:lo,debug_experiences:e=>{var t=ho(e.location);return Promise.resolve(t?"debug_experiences=".concat(t):"")},dflwc:vo,fvst:go,geo:bo,hutk:wo,id:fo,ptch:Oo,pgv:Eo,ppg:ko,pti:e=>{var t=e.publishTime;return Promise.resolve(t?"pti=".concat(t):"")},qpa:e=>{var t=e.location,r=[];if(t)for(var n of Array.from(t.searchParams.keys()).reverse())-1===r.indexOf(n)&&r.push(n);return Promise.resolve(r.length>0?"qpa=".concat(r.reverse().join(",")):"")},rsrc:xo,red:Lo,ref:Mo,sdu:Uo,sid:Vo,trg:is,uexp:js,useg:Ts,utyp:As,utms:function(){var e=n((function*(e){var t=e.location;if(!t)return"";var r=Object.values(Ds);return Array.from(t.searchParams.entries()).filter((e=>{var[t]=e;return r.includes(t)})).map((e=>{var t,[r,n]=e;return"".concat(null!==(t=Ns[r])&&void 0!==t?t:r,"=").concat(n)})).filter(Is).join("&")}));return function(t){return e.apply(this,arguments)}}(),vfrq:function(){var e=n((function*(e){return e.hasConsent?"":"".concat("vfrq","=").concat("6")}));return function(t){return e.apply(this,arguments)}}()},Ls=function(){var e=n((function*(e,t,r){var n=yield Promise.all((e=>{var t=Object.entries(Rs);if(!e)return t;var r=new Set(Array.from(e.values()).map((e=>{var t;return null!==(t=_s[e])&&void 0!==t?t:e})));return r.add("sid"),r.add("ptch"),t.filter((e=>{var[t]=e;return r.has(t)}))})(r).map((t=>{var[r,n]=t;return n(e)})));return"".concat(t,"?").concat(n.filter((e=>!!e)).join("&"))}));return function(t,r,n){return e.apply(this,arguments)}}();function xs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ms(e){for(var t=1;te.type===Vs.AMP_DOCUMENT,Bs=e=>e.type===Vs.TEXT_HTML;function Gs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function zs(e){for(var t=1;t{if(e.has(Ks)){var r={src:e.get(Ks)};return e.has(Hs)&&(r.height=parseInt(e.get(Hs),10)),zs(zs({},t),{},{heroElement:r})}return t};function Js(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xs(e){for(var t=1;t{if(e.has($s)){var r={url:e.get($s)};return Xs(Xs({},t),{},{canonical:r})}return t},Ys=e=>e.includes("marfeelrecommenderexperienceengine.mrf.io");function Zs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ea(e){for(var t=1;tr(t,e)),{})}catch(t){throw new Error("".concat(t,"::").concat(e.url))}}))).apply(this,arguments)}function ra(e){return na.apply(this,arguments)}function na(){return na=n((function*(e){return Object.entries(e).map(function(){var e=n((function*(e){var t,r,[n,i]=e;return r=i.content,(qs(r)||Bs(r))&&(t=yield function(e){return ta.apply(this,arguments)}(i.content)),[n,i,t]}));return function(t){return e.apply(this,arguments)}}()).reduce(function(){var e=n((function*(e,t){var r,n=yield e,[i,o,s]=yield t;return s&&(r=function(e,t){return ea(ea({},e),{},{features:ea(ea({},e.features),t)})}(o,s)),n[i]=r||o,n}));return function(t,r){return e.apply(this,arguments)}}(),Promise.resolve({}))})),na.apply(this,arguments)}function ia(e,t){return r=>{var n=r.detail;(null==n?void 0:n.owner)===t&&e({uri:n.uri})}}var oa=()=>window.location.hash.includes("mrfdebug"),sa=function(){var e=n((function*(){return new Promise((e=>{window.marfeel.cmd.push(["compass",t=>e(t.getCanonical())])}))}));return function(){return e.apply(this,arguments)}}(),aa=function(){var e=n((function*(e,t,r){var n,i,o,s,a,c,u,l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],d=oa(),{userIdPromise:p,actualUserId:h}=t.getUserId(),f=d?h:yield p,m=!!d||(yield t.getUserConsent());return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=e.canonical?{headers:{"mrf-lb-hash":e.canonical}}:void 0;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Ls(e,"https://flowcards.mrf.io/json/experiences",t.length>0?new Set(t):void 0).then((e=>"".concat(e,"&v=2")))}(e,t).then((e=>fetch(e,r))).then((e=>e.json())).then(Us)}({pageTechnology:t.getPageType(),canonical:l?yield sa():(u=null===(a=document.querySelector('meta[property="mrf:canonical"]'))||void 0===a?void 0:a.getAttribute("content"),u||(null===(c=document.querySelector('link[rel="canonical"]'))||void 0===c?void 0:c.getAttribute("href"))||void 0),location:new URL(window.location.toString()),publishTime:t.getPublishTime(),siteId:e.accountId,externalExperiences:e.experiences,targeting:e.targeting,userId:f,userSegments:t.getUserSegments(),userType:t.getUserType(),userExperiences:null===(n=e.preflight)||void 0===n||null===(i=n.preflight)||void 0===i||null===(o=i.targeting)||void 0===o?void 0:o.frequencyCap,firstVisit:t.getFirstVisit(),recirculationSource:t.getRecirculationSource(),referrer:t.getReferrer(),sessionDuration:t.getSessionDuration(),sessionReferrer:t.getSessionReferrer(),totalPageViews:t.getTotalPageviews(),cookies:document.cookie,compassVars:{user:t.getUserVars(),session:t.getSessionVars(),page:t.getPageVars()},hasConsent:m,personalizedContent:!(null===(s=e.recommenderConfig)||void 0===s||!s.personalizedContent)},r)}));return function(t,r,n){return e.apply(this,arguments)}}();function ca(e,t){var r=document.createElement("script");return r.setAttribute("type","application/javascript"),r.setAttribute("src",e),t&&(r.id=t),r}function ua(e){return(t,r)=>{var n=ca(t,r);n.setAttribute("type","module"),e.appendChild(n)}}function la(e){return(t,r)=>{var n=ca(t,r);n.noModule=!0,n.async=!0,n.defer=!0,e.appendChild(n)}}function da(e){return(t,r)=>{var n=ca(t,r);e.appendChild(n)}}function pa(e){return"marfeel-".concat(e)}function ha(e){return function(e){return document.querySelector(pa(e))}(e)||function(e){return document.body.appendChild(document.createElement(pa(e)))}(e)}var fa=function(){var e=n((function*(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{onInteraction:r=!0,strategy:n="async"}=t;return(e=>{var t="string"!=typeof e?e.module:e;return!!document.querySelector('script[src="'.concat(t,'"]'))})(e)?Promise.resolve():(r?function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2e4,r=["touchstart","click","scroll"];return new Promise((n=>{var i=()=>{r.forEach((e=>((e,t)=>{document.removeEventListener(e,t)})(e,i))),window.clearTimeout(e),n()};r.forEach((e=>((e,t)=>{document.addEventListener(e,t,{passive:!0})})(e,i))),e=window.setTimeout(i,t)}))}():Promise.resolve()).then((()=>{"sync"===n?"string"!=typeof e?(function(){ua(document.head)(...arguments)}(e.module),function(){la(document.head)(...arguments)}(e.nomodule)):function(){da(document.head)(...arguments)}(e):"string"!=typeof e?(function(){ua(document.body)(...arguments)}(e.module),function(){la(document.body)(...arguments)}(e.nomodule)):function(){da(document.body)(...arguments)}(e)}))}));return function(t){return e.apply(this,arguments)}}(),ma=[],va=[];function ga(e,t){var r=e instanceof Array?e:[e],n=function(e){switch(e){case ps.impression:return ma;case ps.close:return va;default:return[]}}(t);r.forEach((e=>{var r,i;(function(e,t){return t.indexOf(e)>-1})(e,n)||(n.push(e),r=e,i=t,Os().then((e=>{e[r]=function(e,t){var r=fs({total:{impression:0,close:0},last:{impression:0,close:0}},e||{});return r.total[t]++,r[vs.getFullYear()]=ws(r[vs.getFullYear()],t),r[gs.year]=bs(r[gs.year],t),r.last[t]=Number(Date.now()),r}(e[r],i),no(ys,e)})))}))}function ya(e){ga(e,ps.impression)}function ba(e){ga(e,ps.close)}var wa=(e,t,r)=>function(){var i=n((function*(n,i,o){var s,a=(null==r?void 0:r(n))||(null===(s=n[e])||void 0===s?void 0:s.actions),c={handlerName:e,handled:!1};if(a){var u=Object.values(a);if(u.length){var l=yield t(u,i,o);c.handled=null==l||l,ya(u.map((e=>{var{id:t}=e;return t})))}}return c}));return function(e,t,r){return i.apply(this,arguments)}}(),Oa=wa(Vi.EXPERIMENTATION,function(){var e=n((function*(e){p(l.INIT_HANDLE_EXPERIMENTATION),yield Promise.all(e.map((e=>{var{url:t}=e,r=new URL(t),n=r.searchParams.get("experimentType");if(null!==n&&document.querySelector('[src*="experimentType='.concat(n,'"]')))return Promise.resolve();var i=new URL(t);return r.searchParams.append("version","esnext"),i.searchParams.append("version","legacy"),fa({module:r.toString(),nomodule:i.toString()},{onInteraction:!1,strategy:"sync"})}))),f(l.INIT_HANDLE_EXPERIMENTATION,l.END_HANDLE_EXPERIMENTATION)}));return function(t){return e.apply(this,arguments)}}()),Ea="complete",ka="interactive",Pa="loading",Sa=()=>document.readyState===Ea,Ca=()=>document.readyState===ka,ja=()=>{var e;return document.readyState===Pa&&!(null===(e=document.head)||void 0===e||!e.appendChild)},Ta=function(){var e=n((function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ea;return new Promise((t=>{var r=(e=>{switch(e){case Pa:return[ja,Ca,Sa];case ka:return[Ca,Sa];default:return[Sa]}})(e),n=()=>r.some((e=>e()));n()?t():document.addEventListener("readystatechange",(()=>{n()&&t()}))}))}));return function(){return e.apply(this,arguments)}}();function Aa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ia(e){for(var t=1;tPromise.resolve()),enrich:o=!1}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};p(l.INIT_HANDLE_INLINE_EXPERIENCE);var s=t[e]||{actions:{}},a=s.actions||{},c={handlerName:e,handled:!1};if(Object.keys(a).length>0){yield i();var u=Ia(Ia({},s),{},{actions:o?yield ra(s.actions):s.actions});yield Ta(n),function(e,t){var r=document.createElement("script");r.setAttribute("type","application/json"),r.innerHTML=JSON.stringify(t);var n=ha(e);n.appendChild(r),n.setAttribute("initialization","inline")}(e,u),yield r(u),c.handled=!0}return f(l.INIT_HANDLE_INLINE_EXPERIENCE,l.END_HANDLE_INLINE_EXPERIENCE,{type:e,jsonResponse:t}),c}));return function(t,r,n){return e.apply(this,arguments)}}();function Na(e,t){return t.id||e}function _a(e,t){Object.entries(t.actions).forEach((t=>{var[r,n]=t,i=function(e){var t;return(null===(t=e.features.canonical)||void 0===t?void 0:t.url)||(qs(e.content)||Bs(e.content)?e.content.url:e.content.type===Vs.WIDGET_PROVIDER||(e=>e.type===Vs.AD_SERVER_PROVIDER)(e.content)?e.content.name:void 0)}(n);e.trackExperience(n.id),i&&e.trackRecirculationEvent("elegible",[{n:Na(r,n),e:[i]}])}))}var Ra="//flowcards.mrf.io/statics/experience-web",La="".concat(Ra,"/index.es2015.standalone.js"),xa="".concat(Ra,"/index.es5.standalone.js"),Ma=function(){var e=n((function*(e,t){if(matchMedia("only screen and (min-width:800px)").matches)return{handlerName:Vi.FLOWCARDS,handled:!1};var{compassSDK:r}=t;return Da(Vi.FLOWCARDS,e,function(){var e=n((function*(e){_a(r,e),yield fa({module:La,nomodule:xa}),ha(Vi.FLOWCARDS).addEventListener("snappointchange",(e=>{var{snapPoint:t,initiator:r,cardId:n}=e.detail;(function(e,t){return"hidden"===e&&"user:button"===t})(t,r)&&ba(n),function(e){return"initial"===e||"active"===e}(t)&&ya(n)}))}));return function(t){return e.apply(this,arguments)}}(),{enrich:!0})}));return function(t,r){return e.apply(this,arguments)}}(),Ua=wa(Vi.GOOGLE_OPTIMIZE,function(){var e=n((function*(e,t){var r=e.map((e=>{var{experiments:t}=e;return t})).reduce(((e,t)=>(t.forEach((t=>e.add(t))),e)),new Set);return new Promise((e=>{!function(){window.dataLayer=window.dataLayer||[],window.dataLayer.push(arguments)}("event","optimize.callback",{callback:(n,i)=>{r.has(i)&&(t.compassSDK.setUserVar("optimize-".concat(i),n),r.delete(i)),0===r.size&&e()}})}))}));return function(t,r){return e.apply(this,arguments)}}()),Va="https://experiences.mrf.io/statics/inline-experiences",Fa="".concat(Va,"/esnext/standalone.js"),qa="".concat(Va,"/legacy/standalone.js"),Ba=function(){var e=n((function*(e,t){return Da(Vi.INLINE,e,n((function*(){var e,r;null===(e=window.mrfInlineExperiences)||void 0===e||e.init(),r=t.compassSDK,document.addEventListener("mrfRenderInline",(e=>{var t,n=null===(t=e.detail)||void 0===t?void 0:t.id;ya(n),r.trackExperience(n)})),document.addEventListener("mrfCloseInline",(e=>{var t;ba(null===(t=e.detail)||void 0===t?void 0:t.id)}))})),{documentState:ka,prepare:(r=n((function*(){yield Ta(Pa),yield fa({module:Fa,nomodule:qa},{onInteraction:!1,strategy:"sync"})})),function(){return r.apply(this,arguments)})});var r}));return function(t,r){return e.apply(this,arguments)}}();function Ga(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function za(e){for(var t=1;t0&&t.push({moduleName:"multimedia",config:{multimedia:r}}),t.forEach((e=>{var{moduleName:t,config:r}=e;window.marfeel.cmd.push(["loader",function(e){e.load(t,r)}])}))}));return function(t){return e.apply(this,arguments)}}(),(e=>{var{loader:t={actions:{}},multimedia:r={actions:{}},ecommerce:n={actions:{}}}=e;return za(za(za({},t.actions),r.actions),n.actions)})),Ha=wa(Vi.CONTEXT_EXPOSITION,function(){var e=n((function*(e,t){e.forEach((e=>{var{contextVariables:r}=e;try{r&&t.compassSDK.setContext(JSON.parse(r))}catch(e){console.error("not valid JSON for the contextExposition experience")}}))}));return function(t,r){return e.apply(this,arguments)}}()),Wa="closed",Ja=function(){var e=n((function*(e,t){var r,n,i=yield t.wait("piano-offer");return!("purchase"!==i.offerType||("inline"===i.displayMode?(e.compassSDK.setPageVar(Wa,"hard-paywall"),0):"modal"!==i.displayMode||!i.activeMeters||"DefaultMeter"!==(r=i.activeMeters,n=JSON.parse(r),Array.isArray(n)?n[0]:n).meterName||(e.compassSDK.setPageVar(Wa,"dynamic-paywall"),0)))}));return function(t,r){return e.apply(this,arguments)}}(),Xa="piano subscribe",$a=function(){var e=n((function*(e,t,r){var n,i=yield r.wait("piano-subscription"),o=t.find((e=>e.rid===i.rid));return!!o&&(e.compassSDK.trackConversion(null!==(n=o.conversion)&&void 0!==n?n:Xa),!0)}));return function(t,r,n){return e.apply(this,arguments)}}(),Qa=function(){var e=n((function*(e,t,r){var i,o,s=yield Promise.all(t.map(function(){var t=n((function*(t){if(yield((e,t)=>new Promise((r=>{e.api.callApi("/access/check",{rid:t},(function(e){var t=e.access.granted;return r(t)}))})))(e,t.rid))return t}));return function(e){return t.apply(this,arguments)}}()));r.compassSDK.setUserType(null!==(i=null===(o=s.find(Boolean))||void 0===o?void 0:o.userType)&&void 0!==i?i:"logged")}));return function(t,r,n){return e.apply(this,arguments)}}(),Ya=function(){var e=n((function*(e,t){var r,n,i=null!==(r=null===(n=e.pianoId.getUser())||void 0===n?void 0:n.uid)&&void 0!==r?r:void 0;if(!i)try{var o,s;i=JSON.parse(atob(null===(o=e.pianoId.getToken())||void 0===o||null===(s=o.split("."))||void 0===s?void 0:s[1])).sub}catch(e){}i&&t.compassSDK.setSiteUserId(i)}));return function(t,r){return e.apply(this,arguments)}}(),Za=function(){var e=n((function*(){if(window.tp&&!Array.isArray(window.tp)||(yield new Promise((e=>{!function(){window.tp=window.tp||[],Array.isArray(window.tp)&&window.tp.push(arguments)}("init",e)}))),window.tp&&!Array.isArray(window.tp))return window.tp}));return function(){return e.apply(this,arguments)}}(),ec=e=>Array.isArray(e.resources)?e.resources:e.rid.split(";").map((e=>({rid:e,userType:3,conversion:Xa}))),tc=function(){var e=n((function*(e,t,r,n){return!(!e.pianoId.isUserValid()&&!e.user.isUserValid()||(yield Qa(e,r,n),t&&e.pianoId.isUserValid()&&(yield Ya(e,n)),0))}));return function(t,r,n,i){return e.apply(this,arguments)}}(),rc=wa(Vi.PIANO,function(){var e=n((function*(e,t,r){var i=e.map(ec).reduce(((e,t)=>[...e,...t]),[]),o=e.some((e=>null==e?void 0:e.deviceUnification));yield Promise.all([Ja(t,r),$a(t,i,r),Za().then(function(){var e=n((function*(e){return new Promise((r=>{if(!e)return r();var s=0,a=setInterval(n((function*(){if((yield tc(e,o,i,t))||s>=3)return clearInterval(a),r();s+=1})),5e3)}))}));return function(t){return e.apply(this,arguments)}}())])}));return function(t,r,n){return e.apply(this,arguments)}}()),nc=function(){var e=n((function*(){if(!document.querySelector(".js_smartbanner")){var[e]=yield Promise.all([s.e(512).then(s.bind(s,512)),s.e(376).then(s.bind(s,376))]);(new e.default).publish()}}));return function(){return e.apply(this,arguments)}}(),ic=function(){var e=n((function*(e){[["smartbanner:title",e.title],["smartbanner:author",e.author],["smartbanner:price","GET"],["smartbanner:price-suffix-google"," - In Google Play"],["smartbanner:price-suffix-apple"," - On the App Store"],["smartbanner:icon-google",e.icon],["smartbanner:icon-apple",e.icon],["smartbanner:button-url-google","https://play.google.com/store/apps/details?id=".concat(e.androidId)],["smartbanner:button-url-apple","https://apps.apple.com/app/id".concat(e.iosId)],["smartbanner:enabled-platforms","android,ios"],["smartbanner:button","VIEW"],["smartbanner:custom-design-modifier","marfeel"],["smartbanner:api","true"]].forEach((e=>{var[t,r]=e;return((e,t)=>{var r=document.createElement("meta");r.name=e,r.content=t,document.head.appendChild(r)})(t,r)})),yield nc()}));return function(t){return e.apply(this,arguments)}}(),oc=wa(Vi.APP_BANNER,function(){var e=n((function*(e){var t=e[0];yield ic(t),window.addEventListener("smartbanner.exit",(()=>{ba(t.id)}))}));return function(t){return e.apply(this,arguments)}}()),sc=wa(Vi.SOCIAL_ACQUISITION,function(){var e=n((function*(e){e.forEach((e=>{var{pixelId:t}=e;(e=>{var{pixelId:t}=e;!function(e,t,r,n,i,o,s){e.fbq||(i=e.fbq=function(){i.callMethod?i.callMethod.apply(i,arguments):i.queue.push(arguments)},e._fbq||(e._fbq=i),i.push=i,i.loaded=!0,i.version="2.0",i.queue=[],(o=t.createElement(r)).async=!0,o.src="https://connect.facebook.net/en_US/fbevents.js",(s=t.getElementsByTagName(r)[0]).parentNode.insertBefore(o,s))}(window,document,"script"),window.fbq("init",t),window.fbq("track","PageView")})({pixelId:t})}))}));return function(t){return e.apply(this,arguments)}}()),ac=s(595),cc=["www.amazon","/dp/"],uc="asc_refurl",lc="asc_source",dc="asc_campaign";const pc=new class{isAffiliateUrl(e){return cc.every((t=>e.includes(t)))}getModifiedUrl(e,t){var r=new URL(e),n=r.searchParams.get(uc),i=r.searchParams.get(dc),o=r.searchParams.get(lc);return!n&&t.url&&r.searchParams.set(uc,t.url),!o&&t.source&&r.searchParams.set(lc,t.source),!i&&t.campaign&&r.searchParams.set(dc,t.campaign),{isCorrect:!!n&&!!o&&!!i,url:r.toString()}}};var hc=[pc],fc=(e,t)=>{[...document.querySelectorAll("a")].filter((e=>!!e.href)).forEach((r=>{try{var n,{url:i,isValid:o,build:s}=((e,t)=>{var r=new URL(e);if(t){var n=r.searchParams.get(t);return{isValid:!!n,build:e=>(r.searchParams.set(t,e),r.toString()),url:n?decodeURIComponent(decodeURIComponent(n)):""}}return{isValid:!0,build:e=>e,url:r.toString()}})(r.href,t);if(!o)return;var a=null===(n=hc.filter((e=>e.isAffiliateUrl(i))))||void 0===n?void 0:n[0];if(!a)return;var{isCorrect:c,url:u}=a.getModifiedUrl(i,e);c||(r.href=s(u))}catch(e){}}))},mc=wa(Vi.AFFILIATION_ENHANCER,function(){var e=n((function*(e){e.forEach((e=>{var{context:t,queryParam:r}=e;((e,t)=>{fc(e,t),(0,ac.N)((()=>{fc(e,t)}))})(JSON.parse(t),r)}))}));return function(t){return e.apply(this,arguments)}}()),vc=wa(Vi.PAGE_METRICS_TRACKING,function(){var e=n((function*(e,t){var r=e.filter((e=>!!e.timingKeys)).map((e=>e.timingKeys)).reduce(((e,t)=>[...null!=e?e:[],...null!=t?t:[]]),[]);r.length&&"PerformanceObserver"in window&&new PerformanceObserver((e=>{for(var n of e.getEntries())r.includes(n.name)&&("mark"===n.entryType?t.compassSDK.setPageMetric(n.name,Math.round(n.startTime)):"measure"===n.entryType&&t.compassSDK.setPageMetric(n.name,Math.round(n.duration)))})).observe({entryTypes:["measure","mark"]})}));return function(t,r){return e.apply(this,arguments)}}()),gc=[[(e,t)=>{var r,n,i,o={handlerName:"experiments",handled:!1};if(e.experiments){var s=(r=e.experiments,n=t.compassSDK,i=n.getUserVars()||[],r.filter((e=>{var{name:t}=e;return!i.some((e=>{var[r]=e;return r==="".concat(Ho).concat(t)}))})));o.handled=function(e,t){return 0!==e.length&&(e.forEach((e=>{var{name:r,group:n,groups:i}=e;t.setUserVar("".concat(Ho).concat(r),function(e,t){return t?(Math.floor(Math.random()*t)+1).toString():e.toString()}(n,i))})),!0)}(s,t.compassSDK)}return Promise.resolve(o)}]],yc=[[Ba],[(e,t)=>{var{compass:r={actions:{}},recirculation:n={actions:{}},conversions:i={actions:{}}}=e,o=Object.values(qo(qo(qo({},null==r?void 0:r.actions),null==n?void 0:n.actions),null==i?void 0:i.actions)),s={handlerName:"compass",handled:!1};if(o.length){var a={layouts:[],modules:[],blacklist:[],redirectionLinks:[]};Object.values(o).forEach((e=>{var{recirculationModules:r=[],userType:n,userVars:i={},conversionButtons:o=[],layouts:s=[],blacklist:c=[],redirectionLinks:u=[]}=e;t.compassSDK.setConversionButtons(o),void 0!==n&&t.compassSDK.setUserType(n),Object.entries(i).forEach((e=>{var[r,n]=e;return t.compassSDK.setUserVar(r,n)})),a.modules.push(...r),a.layouts.push(...s),a.blacklist.push(...c),a.redirectionLinks.push(...u)})),t.compassSDK.setRecirculationConfig(a),s.handled=!0}return Promise.resolve(s)}],[e=>{var{adManager:t}=e,r={handlerName:"ad-manager",handled:!1};return null!=t&&t.actions&&(Object.values(t.actions).forEach((e=>{var t,{targeting:r}=e;(t=r)&&(window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],t.forEach((e=>{var{key:t,value:r}=e;window.googletag.cmd.push((()=>{window.googletag.pubads().setTargeting(t,r)}))})))})),r.handled=!0),Promise.resolve(r)},Ro,Oa,Ma,Ua,rc,sc,(e,t)=>{var{goalTracking:r}=e,n={handlerName:"goalTracking",handled:!1};return null!=r&&r.actions&&(Object.values(r.actions).forEach((e=>{var{goals:r}=e;null==r||r.forEach((e=>t.compassSDK.trackConversion(e)))})),n.handled=!0),Promise.resolve(n)},(e,t)=>{var{genericGoalTracking:r}=e,n={handlerName:"genericGoalTracking",handled:!1},i=!1;if(null!=r&&r.actions){var o,s,a=Object.values(r.actions).reduce(((e,t)=>((e[t.source]=e[t.source]||[]).push(t),e)),{});if((null===(o=a[Bo.POST_MESSAGE])||void 0===o?void 0:o.length)>0){var c=Ko(a[Bo.POST_MESSAGE]);window.addEventListener("message",(e=>{if(Object.keys(c).includes(e.origin)){var r,n;try{n=JSON.parse(e.data)}catch(e){return}"complete"!==n.event&&("close"!==n.event&&"purge"!==n.event||null===(r=n.params)||void 0===r||!r.completePayment)||i||(i=!0,t.compassSDK.trackConversion(c[e.origin]))}})),n.handled=!0}if((null===(s=a[Bo.HTTP])||void 0===s?void 0:s.length)>0){var u=Ko(a[Bo.HTTP]),l=window.fetch,d=window.XMLHttpRequest.prototype.open;window.fetch=(e,r)=>{var n=l(e,r);return Object.keys(u).includes(e)&&n.then((r=>{r.ok&&t.compassSDK.trackConversion(u[e])})),n},window.XMLHttpRequest.prototype.open=function(){d.apply(this,arguments);try{var e=new URL(arguments[1]);Object.keys(u).includes(e.origin)&&t.compassSDK.setPageVar(u[e.origin],"true")}catch(e){}},n.handled=!0}}return Promise.resolve(n)},Ka,(e,t)=>{var{siteContextSynchronizer:r}=e,n={handlerName:"siteContextSynchronizer",handled:!1};return null!=r&&r.actions&&(Object.values(r.actions).forEach((e=>{e.definition.forEach((e=>{return r=e,n=t.compassSDK,i=0,o=(e,t)=>{var r=Zo(e,t.params);switch(function(e){return void 0!==(null==e?void 0:e.name)}(t.action)?t.action.name:t.action){case"userType":"string"!=typeof r&&"number"!=typeof r||n.setUserType(r);break;case"conversion":"string"==typeof r&&n.trackConversion(r);break;case"marfeelCMD":var i=t.action;window.marfeel.cmd.push([i.config.module,e=>{var t;Array.isArray(r)&&(null==e||null===(t=e[i.config.method])||void 0===t||t.call(e,...r))}])}},s=e=>{for(var t of r.effects)if(Yo(e,t.condition))return void o(e,t)},(a=function e(){var t,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=r.path.startsWith("window.")?r.path.substring(7):r.path,a=Qo(window,o);if(a)if("array"===r.type){if(Array.isArray(a)){for(var c=i;c0&&setTimeout((()=>e()),u)})(),void(0,Jo.C1)((()=>{a(!1)}));var r,n,i,o,s,a}))})),n.handled=!0),Promise.resolve(n)},Ha,oc,(e,t)=>{var{marfeelOptimizer:r}=e,n={handlerName:"marfeelOptimizer",handled:!1};return null!=r&&r.actions&&Object.values(r.actions).length>0?new Promise((e=>{var r=es(t.compassSDK),n=0;if(r)return e();var i=setInterval((()=>{if(es(t.compassSDK)||n>=2)return clearInterval(i),e();n+=1}),5e3)})).then((()=>(n.handled=!0,Promise.resolve(n)))):Promise.resolve(n)},mc,vc]],bc=function(){var e=n((function*(e,t,r,n){var i=[];for(var[o,s]of e.entries()){p(l.INIT_HANDLE_ACTION);var a=yield Promise.all(s.map((e=>e(t,r,n))));f(l.INIT_HANDLE_ACTION,l.END_HANDLE_ACTION,{index:o}),i.push(...a)}return i}));return function(t,r,n,i){return e.apply(this,arguments)}}(),wc=(e,t,r)=>bc(yc,e,t,r);class Oc{constructor(){o(this,"promise",void 0),o(this,"promiseResolve",void 0),this.promise=new Promise((e=>{this.promiseResolve=e}))}resolve(){var e;null===(e=this.promiseResolve)||void 0===e||e.call(this)}}var Ec=function(e){return e.NOT_EQUALS="NOT_EQUALS",e.EQUALS="EQUALS",e}({}),kc=e=>e.replace(/\/+$/,""),Pc=(e,t)=>e.hostname===t.hostname&&kc(e.pathname)===kc(t.pathname),Sc=function(){var e=n((function*(e){var t=window.location;switch(e.operator){case Ec.NOT_EQUALS:return e.values.every((e=>!Pc(t,new URL(e))));case Ec.EQUALS:default:return e.values.some((e=>Pc(t,new URL(e))))}}));return function(t){return e.apply(this,arguments)}}(),Cc=function(){var e=n((function*(e,t){if(oa()||e.operator!==Ec.EQUALS)return!0;var r=function(){var e=n((function*(){return new Promise((e=>{if(window.didomiConfig)return window.didomiOnReady=window.didomiOnReady||[],void window.didomiOnReady.push((t=>{e(t.shouldConsentBeCollected())}));t.consentSDK.hasToPromptForConsent(e)}))}));return function(){return e.apply(this,arguments)}}();return!!(yield r())||t.consentSDK.isActive()&&!function(e){var t=new RegExp("(^|;) ?".concat("mrfpass","=([^;]*)(;|$)")).exec(document.cookie);return t?t[2]:null}()&&e.values.some((e=>!t.consentSDK.hasConsentForPurpose(+e)))}));return function(t,r){return e.apply(this,arguments)}}(),jc="pendingConsent",Tc=function(){var e=n((function*(e){var t=window.location.hostname;switch(e.operator){case Ec.NOT_EQUALS:return e.values.every((e=>e!==t));case Ec.EQUALS:default:return e.values.some((e=>e===t))}}));return function(t){return e.apply(this,arguments)}}(),Ac=function(){var e=n((function*(e){var t=document.documentElement.lang||"None";switch(e.operator){case Ec.NOT_EQUALS:return e.values.every((e=>e!==t));case Ec.EQUALS:default:return e.values.some((e=>e===t))}}));return function(t){return e.apply(this,arguments)}}(),Ic=function(){var e=n((function*(e){var[t,r="/"]=window.location.pathname.split("/"),n="/"!==r?"/".concat(r,"/"):r;switch(e.operator){case Ec.NOT_EQUALS:return e.values.every((e=>e!==n));case Ec.EQUALS:default:return e.values.some((e=>e===n))}}));return function(t){return e.apply(this,arguments)}}(),Dc=function(){var e=n((function*(e){var t,r=(null==(t=window.navigator.language||window.navigator.userLanguage)?void 0:t.split("-")[0].toLowerCase())||"en";switch(e.operator){case Ec.NOT_EQUALS:return e.values.every((e=>e!==r));case Ec.EQUALS:default:return e.values.some((e=>e===r))}}));return function(t){return e.apply(this,arguments)}}();function Nc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _c(e){for(var t=1;tfunction(){var t=n((function*(t){switch(t.operator){case Ec.NOT_EQUALS:return t.values.every((t=>t!==e));case Ec.EQUALS:default:return t.values.some((t=>t===e))}}));return function(e){return t.apply(this,arguments)}}();function Lc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xc(e){for(var t=1;t(e.compassSDK.getUserVars()||[]).map((e=>{var[t,r]=e,n=Rc(r.toString());return _c({[t]:n,["".concat("userVar::").concat(t)]:n},(e=>e.startsWith(Ho))(t)?{[t.replace(Ho,"")]:n}:{})})).reduce(((e,t)=>_c(_c({},e),t)),{})],Fc=function(){var e=n((function*(e,t){return Promise.all(e.map(t)).then((t=>e.filter(((e,r)=>t[r]))))}));return function(t,r){return e.apply(this,arguments)}}(),qc=function(){var e=n((function*(e,t,r){return!Array.isArray(e.filters)||0===e.filters.length||(yield Promise.all(e.filters.map((e=>{var n=r[e.key];return!n||n(e,t)})))).every(Boolean)}));return function(t,r,n){return e.apply(this,arguments)}}(),Bc=function(){var e=n((function*(e,t){if(!e.actions)return e;var r=yield t((e=>Object.entries(e).reduce(((e,t)=>{var r,[n,i]=t;return r=i.id,document.querySelector('[data-mrf-experience="'.concat(r,'"]'))||(e[n]=i),e}),{}))(e.actions));return 0!==r.length?xc(xc({},e),{},{actions:r.reduce(((e,t)=>{var[r,n]=t;return xc(xc({},e),{},{[r]:n})}),{})}):void 0}));return function(t,r){return e.apply(this,arguments)}}(),Gc=function(){var e=n((function*(e,t){return Object.entries(e).reduce(function(){var e=n((function*(e,r){var[n,i]=r,o=yield((e,t)=>{var r=(e=>{var t=Vc.map((t=>t(e))).reduce(((e,t)=>xc(xc({},e),t)),{});return xc(xc({},Uc),t)})(t);return Bc(e,(e=>Fc(Object.entries(e),(e=>{var[n,i]=e;return qc(i,t,r)}))))})(i,t);return o?xc(xc({},yield e),{},{[n]:o}):e}));return function(t,r){return e.apply(this,arguments)}}(),Promise.resolve({}))}));return function(t,r){return e.apply(this,arguments)}}(),zc=function(){var e=n((function*(e,t){return Object.entries(e).reduce(function(){var e=n((function*(e,r){var[n,i]=r,o=yield((e,t)=>Bc(e,(e=>Fc(Object.entries(e),(e=>{var[r,n]=e;return((e,t)=>Promise.resolve(t.some((t=>e.id===t))))(n,t)})))))(i,t.split(","));return o?xc(xc({},yield e),{},{[n]:o}):e}));return function(t,r){return e.apply(this,arguments)}}(),Promise.resolve({}))}));return function(t,r){return e.apply(this,arguments)}}(),Kc=function(){var e=n((function*(e,t){var r,n=(r=ho(new URL(window.location.href)))&&Mc.some((e=>r.startsWith(e)))?r:void 0;return n?zc(e,n):Gc(e,t)}));return function(t,r){return e.apply(this,arguments)}}();function Hc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Wc(e){for(var t=1;t(e=>"content"in e)(e)&&Bs(e.content)&&e.content.url.includes("marfeelpassexperience");function Xc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $c(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{actions:{}};if(!("actions"in e))return e;var{actions:r}=e,{actions:n={}}=t;if(Object.values(n).some(Jc))return{actions:Object.entries(r).reduce(((e,t)=>{var[r,n]=t;return Jc(n)?Wc({},e):Wc(Wc({},e),{},{[r]:n})}),{})};if(Object.values(r).filter(Jc).length>1){var i=Object.keys(r).filter((e=>Jc(r[e])))[0];return{actions:Wc({[i]:r[i]},Object.entries(r).filter((e=>{var[t,r]=e;return!Jc(r)})).reduce(((e,t)=>{var[r,n]=t;return Wc(Wc({},e),{},{[r]:n})}),{}))}}return e},flowcards:e=>window.location.hash.includes("disabletriggers=true")&&"actions"in e&&"cards"in e?([...Object.values(e.actions),...Object.values(e.cards)].forEach((e=>{e.triggers={timeout:{on:"timeout",action:"setSnapPoint:initial",spec:{time:200}}},e.features=$c($c({},e.features),{},{transition:"automaitc"})})),e):e};function eu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tu(e){for(var t=1;t(e=>"content"in e)(e)&&Bs(e.content)&&e.content.url.includes("marfeelpassexperienceengine.mrf.io")?tu(tu({},e),{},{features:tu(tu({},e.features),{},{removable:!1}),filters:[...e.filters||[],{operator:Ec.EQUALS,values:["1","2","3","4","5","6","7","8","9","10","11"],key:jc}]}):e];function nu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function iu(e){for(var t=1;tru.reduce(((e,t)=>t(e)),e)},su=e=>Object.entries(e).reduce(((e,t)=>{var[r,n]=t,i=ou[r];return iu(iu({},e),{},i&&n&&"actions"in n?{[r]:iu(iu({},n),{},{actions:Object.entries(n.actions).reduce(((e,t)=>{var[r,n]=t;return iu(iu({},e),{},{[r]:i(n)})}),{})})}:{[r]:n})}),{});function au(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function cu(e){for(var t=1;t{var t=e(),r=new Promise((e=>{window.setTimeout((()=>{e(void 0)}),3e3)}));return Promise.race([t,r])},lu=e=>!!e,du=function(){var e=n((function*(e,t,r,n){return yield((e,t,r)=>uu((()=>((e,t,r)=>bc(gc,e,t,r))(e,t,r))))(e,t,r),((e,t)=>Object.entries(e).reduce(((e,r)=>{var[n,i]=r,o=Zc[n];return Yc(Yc({},e),{},o&&i?{[n]:o(i,t[n])}:{[n]:i})}),{}))(yield Kc(e,t),n)}));return function(t,r,n,i){return e.apply(this,arguments)}}();class pu{constructor(e,t,r,n,i){o(this,"config",void 0),o(this,"compassSDK",void 0),o(this,"synchronizer",void 0),o(this,"consentSDK",void 0),o(this,"eventsSDK",void 0),o(this,"executionData",void 0),o(this,"deferred",void 0);var s=e.experiences||e.flowcards;this.compassSDK=t,this.synchronizer=r,this.consentSDK=n,this.eventsSDK=i,this.config={accountId:e.accountId,targeting:{}},s&&Object.assign(this.config,s),this.deferred=new Oc,this.executionData=this.loadExperiences(),function(e){Xi.apply(this,arguments)}($i,{encoder:Qi,decoder:Yi,isPatch:!1}),this.listenForExperiencesRecirculation()}listenForExperiencesRecirculation(){this.eventsSDK.on("recirculation",(e=>{var t,r,n,{t:i,m:o}=e;if("click"===i){var s=null===(t=o[0])||void 0===t||null===(r=t.e[0])||void 0===r||null===(n=r.meta)||void 0===n?void 0:n["mrf-editorial-id"];s&&No(this.config.accountId,{editorialId:s})}}))}loadExperiences(){var e=arguments,t=this;return n((function*(){var r=e.length>0&&void 0!==e[0]&&e[0];p(l.LOADING_EXPERIENCES);var i,o,s,a,c,u,d,h={},m=[],v={config:t.config,compassSDK:t.compassSDK,consentSDK:t.consentSDK},{active:g,clientParameters:y,preflight:b,recommender:w}=yield(i=t.config,i.preflight?(i.preflight.active=i.preflight.active||!!ho(new URL(window.location.href)),Promise.resolve(i.preflight)):function(e){return(e=>Ls(e,"https://flowcards.mrf.io/json/active",new Set(["sid","ptch","debug_experiences"])))(e).then(fetch).then((e=>e.json())).then((e=>e.preflight?Ms(Ms({},e),{},{preflight:Us(e.preflight)}):e))}({location:new URL(window.location.toString()),siteId:i.accountId,pageTechnology:0})),O=Promise.resolve();if(t.config.recommenderConfig=w,b){var E=yield du(su(b),v,t.synchronizer,h);h=Ui()(h,E),O=((e,t,r)=>uu((()=>wc(e,t,r))))(E,v,t.synchronizer).then((e=>{Array.isArray(e)&&m.push(...e);var[t]=m.filter((e=>"compass"===(null==e?void 0:e.handlerName)));(null==t||!t.handled)&&v.compassSDK.setRecirculationConfig({})}))}if(g||oa()||ho(new URL(window.location.href))){yield(o=t.config,s=t.deferred,null!==(a=o.waitFor)&&void 0!==a&&a.promise?o.waitFor.promise:null!==(c=o.waitFor)&&void 0!==c&&c.timeout?(d=o.waitFor.timeout,new Promise((e=>{setTimeout(e,d)}))):null!==(u=o.waitFor)&&void 0!==u&&u.done?s.promise:Promise.resolve());var k=yield aa(t.config,t.compassSDK,y,r).then(function(){var e=n((function*(e){var r=yield du(su(e),v,t.synchronizer,h);return h=Ui()(h,r),((e,t,r)=>wc(e,t,r))(r,v,t.synchronizer)}));return function(t){return e.apply(this,arguments)}}());Array.isArray(k)&&m.push(...k)}yield O;var P=m.filter(lu).reduce(((e,t)=>cu(cu({},e),{},{[t.handlerName]:e[t.handlerName]||t.handled})),{});return Object.values(Vi).forEach((e=>{t.synchronizer.resolve(e,!!P[e])})),f(l.LOADING_EXPERIENCES,l.END_LOADING_EXPERIENCES),{handled:P,experiences:h}}))()}done(){this.deferred.resolve()}addTargeting(e,t){this.config.targeting[e]=t}addExperience(e,t){var r,n,i,o;null!==(n=(r=this.config).experiences)&&void 0!==n||(r.experiences={}),null!==(o=(i=this.config.experiences)[e])&&void 0!==o||(i[e]=[]),this.config.experiences[e].push(t)}addEventListener(e,t,r){var n=function(e,t){return"navigationchange"===e?e=>{t(e)}:"navigationfromcard"===e?ia(t,"host"):"navigationtocard"===e?ia(t,"flowcards"):null}(t,r);n&&ha(e).addEventListener("navigationchange",n)}hasExperiences(e){return this.executionData.then((t=>{var{handled:r}=t;return!!r[e]}))}triggerExperiences(){var e=this;return n((function*(){return e.loadExperiences(!0)}))()}hasExperimentation(e){return this.executionData.then((t=>{var{experiences:r}=t;return((e,t)=>{var r,n=null===(r=e.experimentation)||void 0===r?void 0:r.actions;return!!n&&Object.values(n).some((e=>{var{url:r}=e;return-1!==r.indexOf("experimentType=".concat(t))}))})(r,e)}))}getRecommendations(e){var t=this;return n((function*(){var r;return yield function(e){return Fs.apply(this,arguments)}({experienceId:e,canonical:t.compassSDK.getCanonical(),userId:t.compassSDK.getUserId().actualUserId,personalizedContent:!(null===(r=t.config.recommenderConfig)||void 0===r||!r.personalizedContent),siteId:t.config.accountId})}))()}}y("experiences",["compass","synchronizer","consent","events"],(()=>Promise.resolve(pu)));class hu{constructor(e,t){o(this,"croupier",void 0),this.croupier=t}addTargeting(e,t){this.croupier.addTargeting(e,t)}addCard(e){this.croupier.addExperience(Vi.FLOWCARDS,e)}addEventListener(e,t){this.croupier.addEventListener(Vi.FLOWCARDS,e,t)}hasCards(){return this.croupier.hasExperiences(Vi.FLOWCARDS)}}function fu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mu(e){for(var t=1;tPromise.resolve(hu))),y("multimedia",["compass","consent","synchronizer"],function(){var e=n((function*(e,t){var r,n,i,[o,a,c]=t;return yield A(mu(mu({},e),{},{blockOnNoConsent:!(null===(r=e.multimedia)||void 0===r||!r.providers)&&-1!==(null===(n=e.multimedia)||void 0===n||null===(i=n.providers)||void 0===i?void 0:i.indexOf("youtube"))||e.blockOnNoConsent}),a,c),e.multimedia?s.e(688).then(s.bind(s,688)).then((e=>e.default)):Promise.reject()}));return function(t,r){return e.apply(this,arguments)}}());class vu{constructor(){o(this,"promises",void 0),this.promises={}}wait(e){var t,r;null!==(r=(t=this.promises)[e])&&void 0!==r||(t[e]={});var n=this.promises[e].promise;return void 0===n?(n=new Promise(((t,r)=>{this.promises[e].resolve=t,this.promises[e].reject=r})),this.promises[e].promise=n,n):n}resolve(e,t){var r,n;null!==(n=(r=this.promises)[e])&&void 0!==n||(r[e]={}),void 0===this.promises[e].resolve?this.promises[e].promise=Promise.resolve(t):(0,this.promises[e].resolve)(t)}reject(e,t){var r,n;null!==(n=(r=this.promises)[e])&&void 0!==n||(r[e]={}),void 0===this.promises[e].reject?this.promises[e].promise=Promise.reject(t):(0,this.promises[e].reject)(t)}}y("synchronizer",[],(()=>Promise.resolve(vu)));let gu=()=>({emit(e,...t){for(let r=0,n=this.events[e]||[],i=n.length;r{this.events[e]=this.events[e]?.filter((e=>t!==e))}}});function yu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bu(e){for(var t=1;t{"click"===e.t?null==t||t(e):setTimeout((()=>{null==t||t(e)}),0)}))}emitRecirculation(e){var t=function(e){return{t:wu[e.t],m:e.m}}(e),r=function(e){return e.m.reduce(((t,r)=>{var n=r.n;if(n.startsWith("FC_")||n.startsWith("IL_")){var i,o=n.startsWith("IL_")?"inline":"flowcards";return bu(bu({},t),{},{["recirculation:".concat(o)]:{t:e.t,m:[...(null===(i=t["recirculation:".concat(o)])||void 0===i?void 0:i.m)||[],r]},["recirculation:".concat(n)]:{t:e.t,m:[r]}})}return bu(bu({},t),{},{["recirculation:".concat(n)]:{t:e.t,m:[r]}})}),{})}(t);this.emitter.emit("recirculation",t),Object.keys(r).forEach((e=>{this.emitter.emit(e,r[e])}))}}y("events",[],(()=>Promise.resolve(Ou)));var Eu=(e,t,r)=>{var n,i;n=((e,t,r)=>{var n=document.createElement("script");return n.src=e,n.id=r,t?n.type="module":(n.setAttribute("nomodule",""),n.setAttribute("defer","")),n})(e,r,t),i=document.head,new Promise(((e,t)=>{n.addEventListener("error",(e=>t(e.error))),n.addEventListener("load",(()=>e())),i.append(n)}))},ku="https://sdk.mrf.io/statics",Pu={ecommerce:{srcModule:"".concat(ku,"/compass-ecommerce-sdk.js"),srcNoModule:"".concat(ku,"/compass-ecommerce-sdk.es5.js"),dependencies:["compass"]},multimedia:{srcModule:"".concat(ku,"/compass-multimedia-sdk.js"),srcNoModule:"".concat(ku,"/compass-multimedia-sdk.es5.js"),dependencies:["compass"]}},Su=e=>"".concat(e,"?version=2098");class Cu{load(e,t){var r=Pu[e];t&&function(){g.addConfig(...arguments)}(t),Eu(Su(r.srcModule),e,!0),Eu(Su(r.srcNoModule),e,!1)}loadFile(e,t,r){Eu(e,t,r)}}y("loader",[],(()=>Promise.resolve(Cu)))})();